From 2e4140ef34dc91a866a179da553e8fc10a7ad40d Mon Sep 17 00:00:00 2001 From: Glenn Jackman Date: Tue, 16 Jul 2024 10:23:28 -0400 Subject: [PATCH] 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. --- bin/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/run.sh b/bin/run.sh index 59da95a..517047a 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -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