Unverified Commit 86f36254 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub

Merge pull request #23609 from karalabe/regex-fix

internal/debug: make gosimple linter happy
parents e28f713a 9bf495bf
...@@ -207,7 +207,7 @@ func (*HandlerT) Stacks(filter *string) string { ...@@ -207,7 +207,7 @@ func (*HandlerT) Stacks(filter *string) string {
// interpreter: // interpreter:
// //
// E.g. (eth || snap) && !p2p -> (eth in Value || snap in Value) && p2p not in Value // 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 = regexp.MustCompile("!(`[:/\\.A-Za-z0-9_-]+`)").ReplaceAllString(expanded, "$1 not")
expanded = strings.Replace(expanded, "||", "or", -1) expanded = strings.Replace(expanded, "||", "or", -1)
expanded = strings.Replace(expanded, "&&", "and", -1) expanded = strings.Replace(expanded, "&&", "and", -1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment