Skip to content

Commit 9eee25c

Browse files
committed
- Update approvals.bash library to 0.4.1
1 parent bd02c5f commit 9eee25c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/bashly/libraries/test/approvals.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# approvals.bash v0.4.0
1+
# approvals.bash v0.4.1
22
#
33
# Interactive approval testing for Bash.
44
# https://github.com/DannyBen/approvals.bash
@@ -10,7 +10,7 @@ approve() {
1010
last_exit_code=0
1111
actual=$(eval "$cmd" 2>&1) || last_exit_code=$?
1212
if [[ "$allow_diff_regex" ]]; then
13-
actual=$(echo "$actual" | sed "s/$allow_diff_regex/*/g")
13+
actual=$(echo "$actual" | sed -E "s/$allow_diff_regex/*/g")
1414
unset allow_diff_regex
1515
fi
1616
approval=$(printf "%b" "$cmd" | tr -s -c "[:alnum:]" _)

0 commit comments

Comments
 (0)