Change the seven blanks to {7} in the regex, so it will be more readable .

This commit is contained in:
朱正浩,Zhu Zhenghao 2019-08-27 17:01:13 +08:00
parent 28e800245e
commit e1df7c2b64

View File

@ -25,7 +25,7 @@ import (
var (
// Regexp, matching the contents of log entries, parsed or not
logEntryMessageRegex = regexp.MustCompile("(?:I\\d+ \\d+:\\d+:\\d+.\\d+ \\d+ logs_generator.go:67] )?(\\d+) .*")
logEntryMessageRegex = regexp.MustCompile("(?:I\\d+ \\d+:\\d+:\\d+.\\d+ {7}\\d+ logs_generator.go:67] )?(\\d+) .*")
)
// LogEntry represents a log entry, received from the logging backend.