diff --git a/wtf/colors.go b/wtf/colors.go index 4ba36e992..bf3acbb4e 100644 --- a/wtf/colors.go +++ b/wtf/colors.go @@ -270,7 +270,7 @@ var colorMap = map[int]string{ func ASCIItoTviewColors(text string) string { boldRegExp := regexp.MustCompile(`\033\[1m`) fgColorRegExp := regexp.MustCompile(`\033\[38;5;(?P\d+);*\d*m`) - resColorRegExp := regexp.MustCompile(`\033\[0m`) + resColorRegExp := regexp.MustCompile(`\033\[(0|39)m`) return resColorRegExp.ReplaceAllString( boldRegExp.ReplaceAllString(