general: Fix regex issue.

This commit is contained in:
Dylan Araps 2017-07-23 18:40:03 +10:00
parent 416904b29b
commit b080272e01

View File

@ -48,7 +48,7 @@ def colors(vte, cache_dir=__cache_dir__):
# If vte mode was used, remove the unsupported sequence.
if vte:
sequences = re.sub(r"\]708;(\[..\])?\#.{6}", "", sequences)
sequences = re.sub(r"\]708;(\[.{0,3}\])?\#.{6}", "", sequences)
print(sequences, end="")