mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
use FindAllStringIndex instead of FindAllStringSubmatchIndex
This commit is contained in:
parent
e4e92ad5ac
commit
2f20cddcf6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue