Use new definition of Reg

This commit is contained in:
2025-02-09 08:59:16 -05:00
parent eddd2ae700
commit 78fb5606dd

View File

@@ -183,7 +183,7 @@ func (s nfaState) checkAssertion(str []rune, idx int) bool {
strToMatch = string(runesToMatch)
}
regComp := Reg{startState, s.lookaroundNumCaptureGroups}
regComp := Reg{startState, s.lookaroundNumCaptureGroups, s.lookaroundRegex}
matchIndices := regComp.FindAll(strToMatch)
numMatchesFound := 0