From 78fb5606dd970c6225b12e90e0b15c3951328bb0 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Sun, 9 Feb 2025 08:59:16 -0500 Subject: [PATCH] Use new definition of Reg --- regex/nfa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regex/nfa.go b/regex/nfa.go index 8bd1d74..db53c00 100644 --- a/regex/nfa.go +++ b/regex/nfa.go @@ -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