Update regex to match horizontal white space only

This commit is contained in:
Tim Byrne 2020-12-06 22:36:12 -06:00
parent 4b5f16d73a
commit 80d8949850
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12
1 changed files with 1 additions and 1 deletions

2
yadm
View File

@ -1858,7 +1858,7 @@ function parse_encrypt() {
if [ -f "$YADM_ENCRYPT" ] ; then
# parse both included/excluded
while IFS='' read -r line || [ -n "$line" ]; do
if [[ ! $line =~ ^# && ! $line =~ ^[[:space:]]*$ ]] ; then
if [[ ! $line =~ ^# && ! $line =~ ^[[:blank:]]*$ ]] ; then
local IFS=$'\n'
for pattern in $line; do
if [[ "$pattern" =~ $exclude_pattern ]]; then