diff options
Diffstat (limited to 'cmd2')
-rw-r--r-- | cmd2/ansi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/ansi.py b/cmd2/ansi.py index b5b78164..c80d3371 100644 --- a/cmd2/ansi.py +++ b/cmd2/ansi.py @@ -23,8 +23,8 @@ STYLE_ALWAYS = 'Always' allow_style = STYLE_TERMINAL # Regular expression to match ANSI style sequences -# This matches: colorama.ansi.CSI + digit(s) + m -ANSI_STYLE_RE = re.compile(r'\033\[[0-9]+m') +# This matches: colorama.ansi.CSI + 0 or more digits + m +ANSI_STYLE_RE = re.compile(r'\033\[[0-9]*m') # Foreground color presets FG_COLORS = { |