From ebba162affbb6a470836e1348ad2fd4c0d4f02ad Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 28 Jan 2017 03:05:19 +1100 Subject: [PATCH] General: Be less greedy --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 5e4f8929..24e3e6ff 100755 --- a/neofetch +++ b/neofetch @@ -2639,7 +2639,7 @@ trim_quotes() { } strip_sequences() { - strip="${1//$'\033['3?m}" + strip="${1//$'\033['3[0-9]m}" strip="${strip//$'\033['38\;5\;[0-9]m}" strip="${strip//$'\033['38\;5\;[0-9][0-9]m}" strip="${strip//$'\033['38\;5\;[0-9][0-9][0-9]m}"