Change the seven blanks to {7} in the regex, so it will be more readable .
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user