diff --git a/internal/debug/api.go b/internal/debug/api.go index b1f815085..1ea0c6377 100644 --- a/internal/debug/api.go +++ b/internal/debug/api.go @@ -207,7 +207,7 @@ func (*HandlerT) Stacks(filter *string) string { // interpreter: // // E.g. (eth || snap) && !p2p -> (eth in Value || snap in Value) && p2p not in Value - expanded = regexp.MustCompile("[:/\\.A-Za-z0-9_-]+").ReplaceAllString(expanded, "`$0` in Value") + expanded = regexp.MustCompile(`[:/\.A-Za-z0-9_-]+`).ReplaceAllString(expanded, "`$0` in Value") expanded = regexp.MustCompile("!(`[:/\\.A-Za-z0-9_-]+`)").ReplaceAllString(expanded, "$1 not") expanded = strings.Replace(expanded, "||", "or", -1) expanded = strings.Replace(expanded, "&&", "and", -1)