You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is, the second call to matches claims a match has been found, but iter() does not return any indexes.
Curiously, if you omit the first matches call, the second call works as expected, yielding SetMatches { matched_any: true, matches: [false, true] }, [1].
The text was updated successfully, but these errors were encountered:
Yup, dammit. My approach to fixing #186 was silly. (All of the matching engines have interior mutable state, which is the fundamental reason why removing set.matches can cause r2.matched_any to work.)
Since this impacts correctness, I've yanked 0.1.57. I'll try to straighten this out today.
Unfortunately, it looks like 3fb34e2 (the fix for #186) introduced a bug in RegexSet:
Output:
That is, the second call to
matches
claims a match has been found, butiter()
does not return any indexes.Curiously, if you omit the first
matches
call, the second call works as expected, yieldingSetMatches { matched_any: true, matches: [false, true] }, [1]
.The text was updated successfully, but these errors were encountered: