General: Be less greedy

This commit is contained in:
Dylan Araps 2017-01-28 03:05:19 +11:00
parent 9573eee324
commit ebba162aff
1 changed files with 1 additions and 1 deletions

View File

@ -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}"