1
0
mirror of https://github.com/sstephenson/bats.git synced 2024-12-27 06:59:45 +01:00

Merge pull request #7 from binarybabel/bugfix-preprocess-expr

Remove redundant anchor in preprocess expression
This commit is contained in:
Sam Stephenson 2013-04-12 14:48:40 -07:00
commit 0bf9610856

View File

@ -34,7 +34,7 @@ index=0
while IFS= read -r line; do while IFS= read -r line; do
index=$(($index + 1)) index=$(($index + 1))
quoted_name="$(expr "$line" : '^ *@test *\([^ ].*\) *{ *$' || true)" quoted_name="$(expr "$line" : ' *@test *\([^ ].*\) *{ *$' || true)"
if [ -n "$quoted_name" ]; then if [ -n "$quoted_name" ]; then
name="$(eval echo "$quoted_name")" name="$(eval echo "$quoted_name")"