From fc679a06ac4e1409e1d5853910acdc87970e969c Mon Sep 17 00:00:00 2001 From: Willa Drengwitz Date: Fri, 31 Aug 2018 13:53:51 -0400 Subject: [PATCH] Update strip color perl command --- test/support/test_helper.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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