Skip to content

Commit 2e4140e

Browse files
authored
A regex checks for a space: the space is optional (#71)
The current version of bats changed the TAP output a bit: lines starting with a hash may be followed by end-of-line instead of space.
1 parent 9c2c1f3 commit 2e4140e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ build_report() {
166166
local error_message=""
167167

168168
for ((j = i + 1; j < ${#output[@]}; j++)); do
169-
if [[ ${output[$j]} =~ ^#\ (.*)$ ]]; then
169+
if [[ ${output[$j]} =~ ^#\ ?(.*)$ ]]; then
170170
error_message+="${BASH_REMATCH[1]}"$'\n'
171171
else
172172
break

0 commit comments

Comments
 (0)