Skip to content

Commit

Permalink
use !~ for negated regex match
Browse files Browse the repository at this point in the history
  • Loading branch information
gernest committed Feb 19, 2024
1 parent f484b9d commit de0437f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/stats/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func sep(f string) (key, value string, op v1.Filter_OP, ok bool) {
op = v1.Filter_re_equal
return
}
key, value, ok = strings.Cut(f, "~=")
key, value, ok = strings.Cut(f, "!~")
if ok {
op = v1.Filter_re_not_equal
return
Expand Down

0 comments on commit de0437f

Please sign in to comment.