hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit d3a98325c31d7f02f0762e589a4986e55b2a0da2
parent b2a676f5f09a3eea360887b099b9d5fc25a88492
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu,  1 Nov 2018 09:33:32 +0100

common/loggers: Improve log color regexp

To avoid coloring WARNING inside log errors.

Diffstat:
Mcommon/loggers/loggers.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/loggers/loggers.go b/common/loggers/loggers.go
@@ -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 {