Fixed bug where I used the 'lookaroundNumCaptureGroups' member of the wrong State struct
This commit is contained in:
2
nfa.go
2
nfa.go
@@ -136,7 +136,7 @@ func (s State) checkAssertion(str []rune, idx int) bool {
|
||||
strToMatch = string(runesToMatch)
|
||||
}
|
||||
|
||||
matchIndices := findAllMatches(Reg{startState, startState.lookaroundNumCaptureGroups}, strToMatch)
|
||||
matchIndices := findAllMatches(Reg{startState, s.lookaroundNumCaptureGroups}, strToMatch)
|
||||
|
||||
numMatchesFound := 0
|
||||
for _, matchIdx := range matchIndices {
|
||||
|
Reference in New Issue
Block a user