Add better comments

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
This commit is contained in:
Cyril Tovena 2021-10-11 13:56:22 +02:00
parent d41e470693
commit c8dfba9fa4
No known key found for this signature in database
GPG key ID: FD8F768F9D633FB6

View file

@ -320,6 +320,7 @@ func stringMatcherFromRegexp(re *syntax.Regexp) StringMatcher {
} }
re.Sub = re.Sub[:len(re.Sub)-1] re.Sub = re.Sub[:len(re.Sub)-1]
} }
// findSetMatches will returns only literals that are case sensitive.
matches := findSetMatches(re, "") matches := findSetMatches(re, "")
if left == nil && right == nil { if left == nil && right == nil {
// if there's no any matchers on both side it's a concat of literals // if there's no any matchers on both side it's a concat of literals