Skip to content

Commit e1df7c2

Browse files
author
朱正浩,Zhu Zhenghao
committed
Change the seven blanks to {7} in the regex, so it will be more readable �.
1 parent 28e8002 commit e1df7c2

File tree

1 file changed

+1
-1
lines changed
  • test/e2e/instrumentation/logging/utils

1 file changed

+1
-1
lines changed

test/e2e/instrumentation/logging/utils/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525

2626
var (
2727
// Regexp, matching the contents of log entries, parsed or not
28-
logEntryMessageRegex = regexp.MustCompile("(?:I\\d+ \\d+:\\d+:\\d+.\\d+ \\d+ logs_generator.go:67] )?(\\d+) .*")
28+
logEntryMessageRegex = regexp.MustCompile("(?:I\\d+ \\d+:\\d+:\\d+.\\d+ {7}\\d+ logs_generator.go:67] )?(\\d+) .*")
2929
)
3030

3131
// LogEntry represents a log entry, received from the logging backend.

0 commit comments

Comments
 (0)