Skip to content

Commit

Permalink
bee-cache: Add '[' to ere_quote
Browse files Browse the repository at this point in the history
Add '[' to the set of characters which need escaping when used in a
regular expression.
  • Loading branch information
donald committed Oct 19, 2023
1 parent df06443 commit 3090258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bee-cache.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ VERSION=${BEE_VERSION}
: ${BEECACHE_INVENTORY=${BEECACHE_CACHEDIR}/INVENTORY}

function ere_quote() {
sed 's/[]\.|$(){}?+*^]/\\&/g' <<< "$*"
sed 's/[][\.|$(){}?+*^]/\\&/g' <<< "$*"
}

function cache_verify() {
Expand Down

0 comments on commit 3090258

Please sign in to comment.