Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
Bryan Boreham 2023-06-30 15:58:04 +00:00
parent 013fdb9460
commit b72f01414a

View file

@ -330,8 +330,8 @@ func isCaseSensitive(reg *syntax.Regexp) bool {
} }
// tooManyMatches guards against creating too many set matches // tooManyMatches guards against creating too many set matches
func tooManyMatches(matches []string, new ...string) bool { func tooManyMatches(matches []string, added ...string) bool {
return len(matches)+len(new) > maxSetMatches return len(matches)+len(added) > maxSetMatches
} }
func (m *FastRegexMatcher) MatchString(s string) bool { func (m *FastRegexMatcher) MatchString(s string) bool {