diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-12-19 17:31:50 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-12-19 17:31:50 -0500 |
commit | 97b821f10913c82843c2278c70805e3d39cd2076 (patch) | |
tree | 5a9dcb6666a53dd76bdf424348654798c45f2ebc /cmd2/ansi.py | |
parent | b0e5aabad9c902ee5d664bf58885245060114f61 (diff) | |
download | cmd2-git-97b821f10913c82843c2278c70805e3d39cd2076.tar.gz |
Updated style regular expression to not require digits
Diffstat (limited to 'cmd2/ansi.py')
-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 = { |