Commit ebba162a authored by Dylan Araps's avatar Dylan Araps

General: Be less greedy

parent 9573eee3
...@@ -2639,7 +2639,7 @@ trim_quotes() { ...@@ -2639,7 +2639,7 @@ trim_quotes() {
} }
strip_sequences() { 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]m}"
strip="${strip//$'\033['38\;5\;[0-9][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}" strip="${strip//$'\033['38\;5\;[0-9][0-9][0-9]m}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment