Minor update

This commit is contained in:
Miroslav Stampar
2020-02-07 16:33:22 +01:00
parent 3513ca66fe
commit 4ef9557ccd
5 changed files with 28 additions and 14 deletions

View File

@@ -949,7 +949,7 @@ def setColor(message, color=None, bold=False, level=None, istty=None):
if match:
retVal = retVal.replace(match.group(1), colored(match.group(1), color="lightgrey"))
for match in re.finditer(r"[^\w]'([^']+)'", message): # single-quoted
for match in re.finditer(r"[^\w]'([^\n']+)'", message): # single-quoted (Note: watch-out for the banner)
retVal = retVal.replace(match.group(1), colored(match.group(1), color="lightgrey"))
return retVal