Skip to content

Commit

Permalink
Strip color coding characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Oct 8, 2024
1 parent e9ede03 commit 3ff1b30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot/check-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ else
grep -v '\[-*\]' | \ # Remove the line '[----------] all spawned checks have finished'
grep -v '\[=*\]' | \ # Remove the line '[==========] Finished on Mon Oct 7 21'
grep -v '^$' | \ # Remove blank line(s) from the report
sed 's/\x1B\[[0-9;]*m//g' | \ # Strip color coding characters
sed ':a;N;$!ba;s/\n/<br\/>/g' | \ # Replace all newline characters with <br/>
sed 's/\%/\%\%/g' \ # Replace % with %%. Use \%\% to interpret both %% as (non-special) characters
)
Expand Down

0 comments on commit 3ff1b30

Please sign in to comment.