mirror of
https://github.com/sstephenson/bats.git
synced 2024-12-26 06:29:47 +01:00
Merge pull request #7 from binarybabel/bugfix-preprocess-expr
Remove redundant anchor in preprocess expression
This commit is contained in:
commit
0bf9610856
|
@ -34,7 +34,7 @@ index=0
|
|||
|
||||
while IFS= read -r line; do
|
||||
index=$(($index + 1))
|
||||
quoted_name="$(expr "$line" : '^ *@test *\([^ ].*\) *{ *$' || true)"
|
||||
quoted_name="$(expr "$line" : ' *@test *\([^ ].*\) *{ *$' || true)"
|
||||
|
||||
if [ -n "$quoted_name" ]; then
|
||||
name="$(eval echo "$quoted_name")"
|
||||
|
|
Loading…
Reference in New Issue
Block a user