From 80d8949850fe75fac4fdd1717c063503529f999a Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Sun, 6 Dec 2020 22:36:12 -0600 Subject: [PATCH] Update regex to match horizontal white space only --- yadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yadm b/yadm index fbbcb89..f5f8e88 100755 --- a/yadm +++ b/yadm @@ -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