tools: Enable color in shellcheck.

This commit is contained in:
Andrew Hamilton 2019-07-20 14:21:26 +10:00
parent 4a1e109f07
commit 975737d71d
4 changed files with 8 additions and 3 deletions

View file

@ -170,7 +170,7 @@ class TermStr(collections.UserString):
end_index = part.index("m")
except ValueError:
end_index = 0
if part[:2] == "[m": # Normal
if part[:2] == terminal.normal or part[:3] == "[0m": # Normal
is_bold, is_italic, is_underlined = False, False, False
fg_color, bg_color = None, None
elif part[:3] == terminal.bold: