From abd11cfd08430ec5f9d2c6dbd0e0f798816922d1 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Tue, 15 Jul 2025 16:43:33 +0200 Subject: all: apply linter auto fixes ./tools/syz-env bin/golangci-lint run ./... --fix --- pkg/report/report.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pkg/report') 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}}", "\\[\\?\\]", -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}}", "\\[\\?\\]") + 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) } -- cgit mrf-deployment