Skip to content

Commit

Permalink
A regex checks for a space: the space is optional (#71)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
glennj authored Jul 16, 2024
1 parent 9c2c1f3 commit 2e4140e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ build_report() {
local error_message=""

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

0 comments on commit 2e4140e

Please sign in to comment.