Skip to content

Commit

Permalink
Workaround for apparent Bash regex bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed Oct 26, 2023
1 parent 16904d9 commit 06a931e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lib/bashy-core/misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06a931e

Please sign in to comment.