diff --git a/test/support/test_helper.sh b/test/support/test_helper.sh index ba9e472..a021b03 100644 --- a/test/support/test_helper.sh +++ b/test/support/test_helper.sh @@ -15,7 +15,8 @@ fi # Strip color codes from a string strip_colors() { - perl -pe 's/\e\[[\d;]*m//g' + # Updated with info from: https://superuser.com/a/380778 + perl -pe 's/\x1b\[[0-9;]*[mG]//g' } # Print space separated tab completion options