From 254c09146c740f0a558b709034f31959b6cd7190 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 23 Jul 2017 18:40:03 +1000 Subject: [PATCH] general: Fix regex issue. --- pywal/reload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywal/reload.py b/pywal/reload.py index 1f5c31c..322f581 100644 --- a/pywal/reload.py +++ b/pywal/reload.py @@ -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="")