junit output ansi filter does not remove ESC[m #896
Labels
Component: Bash Code
Everything regarding the bash code
Priority: High
Broken behavior in specific environments like in parallel mode or only on some operating systems
Size: Small
Changes to a few localized lines of code (e.g. same function)
Type: Bug
Describe the bug
bats 1.11.0 junit output ANSI Color filtering does not remove ESC[m still generating an invalid xml file
To Reproduce
Steps to reproduce the behavior:
file.bats
with following contents@test ansi-escape-m() { echo -e '\e[1mBold\e[mNormal' false }
Additional context
Changing the existing regex from
local REGEX="$CONTROL_CHAR[[0-9;]+m"
to
local REGEX="$CONTROL_CHAR[[0-9;]*m"
fixes the issue
The text was updated successfully, but these errors were encountered: