use FindAllStringIndex instead of FindAllStringSubmatchIndex

This commit is contained in:
Daisuke Maki 2026-02-20 22:26:47 +09:00
parent e4e92ad5ac
commit 2f20cddcf6

View file

@ -249,7 +249,7 @@ func (rf *Regexp) applyInternal(ctx context.Context, lines []line.Line, em LineE
matches := [][]int{}
TryRegexps:
for _, rx := range posRegexps {
match := rx.FindAllStringSubmatchIndex(v, -1)
match := rx.FindAllStringIndex(v, -1)
if match == nil {
allMatched = false
break TryRegexps