From 06a931ee8e8a22d8b1f691a8737485993f478cd8 Mon Sep 17 00:00:00 2001 From: Dan Bornstein Date: Thu, 26 Oct 2023 10:42:15 -0700 Subject: [PATCH] Workaround for apparent Bash regex bug. --- scripts/lib/bashy-core/misc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/bashy-core/misc.sh b/scripts/lib/bashy-core/misc.sh index a5382ce..ecaae20 100644 --- a/scripts/lib/bashy-core/misc.sh +++ b/scripts/lib/bashy-core/misc.sh @@ -127,7 +127,7 @@ function set-array-from-vals { printf -v _bashy_print '%q' "${BASH_REMATCH[1]}" _bashy_values+=("${_bashy_print}") _bashy_value="${BASH_REMATCH[2]}" - elif [[ ${_bashy_value} =~ ^(\$\'([^\']|\\\')*\')(.*)$ ]]; then + elif [[ ${_bashy_value} =~ ^(\$\'([^\'\\]|\\.)*\')(.*)$ ]]; then _bashy_values+=("${BASH_REMATCH[1]}") _bashy_value="${BASH_REMATCH[3]}" fi