Implement PCRE Matching (prefer left-branch) #2
@@ -183,7 +183,7 @@ func (s nfaState) checkAssertion(str []rune, idx int) bool {
|
|||||||
strToMatch = string(runesToMatch)
|
strToMatch = string(runesToMatch)
|
||||||
}
|
}
|
||||||
|
|
||||||
regComp := Reg{startState, s.lookaroundNumCaptureGroups}
|
regComp := Reg{startState, s.lookaroundNumCaptureGroups, s.lookaroundRegex}
|
||||||
matchIndices := regComp.FindAll(strToMatch)
|
matchIndices := regComp.FindAll(strToMatch)
|
||||||
|
|
||||||
numMatchesFound := 0
|
numMatchesFound := 0
|
||||||
|
Reference in New Issue
Block a user