aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-07-15 16:43:33 +0200
committerTaras Madan <tarasmadan@google.com>2025-07-17 08:31:25 +0000
commitabd11cfd08430ec5f9d2c6dbd0e0f798816922d1 (patch)
tree522a8cc072d07d85c8a1d37b5b3ab89483599b48 /pkg/report
parenta81f309b57265e5760b926274e1f1681e7550e41 (diff)
all: apply linter auto fixes
./tools/syz-env bin/golangci-lint run ./... --fix
Diffstat (limited to 'pkg/report')
-rw-r--r--pkg/report/report.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/report/report.go b/pkg/report/report.go
index 44d4563e2..2ac039fdd 100644
--- a/pkg/report/report.go
+++ b/pkg/report/report.go
@@ -438,10 +438,10 @@ type frameExtractor func(frames []string) (string, int)
var parseStackTrace *regexp.Regexp
func compile(re string) *regexp.Regexp {
- re = strings.Replace(re, "{{ADDR}}", "0x[0-9a-f]+", -1)
- re = strings.Replace(re, "{{PC}}", "\\[\\<?(?:0x)?[0-9a-f]+\\>?\\]", -1)
- re = strings.Replace(re, "{{FUNC}}", "([a-zA-Z0-9_]+)(?:\\.|\\+)", -1)
- re = strings.Replace(re, "{{SRC}}", "([a-zA-Z0-9-_/.]+\\.[a-z]+:[0-9]+)", -1)
+ re = strings.ReplaceAll(re, "{{ADDR}}", "0x[0-9a-f]+")
+ re = strings.ReplaceAll(re, "{{PC}}", "\\[\\<?(?:0x)?[0-9a-f]+\\>?\\]")
+ re = strings.ReplaceAll(re, "{{FUNC}}", "([a-zA-Z0-9_]+)(?:\\.|\\+)")
+ re = strings.ReplaceAll(re, "{{SRC}}", "([a-zA-Z0-9-_/.]+\\.[a-z]+:[0-9]+)")
return regexp.MustCompile(re)
}