Skip to content

Commit

Permalink
Need to add s term to other tests
Browse files Browse the repository at this point in the history
Signed-off-by: Owen Williams <[email protected]>
  • Loading branch information
ywwg committed Sep 20, 2024
1 parent 5bc7554 commit af0e2db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/labels/regexp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ func FuzzFastRegexMatcher_WithStaticallyDefinedRegularExpressions(f *testing.F)
for _, re := range regexes {
m, err := NewFastRegexMatcher(re)
require.NoError(f, err)
r := regexp.MustCompile("^(?:" + re + ")$")
r := regexp.MustCompile("^(?s:" + re + ")$")
matchers = append(matchers, m)
res = append(res, r)
}
Expand Down Expand Up @@ -852,7 +852,7 @@ func FuzzFastRegexMatcher_WithFuzzyRegularExpressions(f *testing.F) {
return
}

reg, err := regexp.Compile("^(?:" + re + ")$")
reg, err := regexp.Compile("^(?s:" + re + ")$")
if err != nil {
// Ignore invalid regexes.
return
Expand Down

0 comments on commit af0e2db

Please sign in to comment.