tools: Enable color in shellcheck.
This commit is contained in:
parent
4a1e109f07
commit
975737d71d
4 changed files with 8 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue