Skip to content

Commit

Permalink
web UI: Filtering log color characters
Browse files Browse the repository at this point in the history
  • Loading branch information
andeya committed May 23, 2018
1 parent 95b438b commit ee99608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/logsocketController.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var (
l.connPool.Store(make(map[string]*ws.Conn))
return l
}()
colorRegexp = regexp.MustCompile("\033\\[[0-9]{1,2}m")
colorRegexp = regexp.MustCompile("\033\\[[0-9;]{1,4}m")
)

func (self *LogSocketController) Write(p []byte) (int, error) {
Expand Down

0 comments on commit ee99608

Please sign in to comment.