mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
common/loggers: Improve log color regexp
To avoid coloring WARNING inside log errors.
This commit is contained in:
parent
b2a676f5f0
commit
d3a98325c3
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ func NewErrorLogger() *Logger {
|
|||
|
||||
var (
|
||||
ansiColorRe = regexp.MustCompile("(?s)\\033\\[\\d*(;\\d*)*m")
|
||||
errorRe = regexp.MustCompile("(ERROR|FATAL|WARN)")
|
||||
errorRe = regexp.MustCompile("^(ERROR|FATAL|WARN)")
|
||||
)
|
||||
|
||||
type ansiCleaner struct {
|
||||
|
|
Loading…
Reference in a new issue