-
Notifications
You must be signed in to change notification settings - Fork 194
Too eager cycle without backtracking #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This also happens for I guess the upside is since this doesn't work properly you're safe from some really awful backtracking. With how this implementation works you could call this a fuzzy match/search/starts_with...there are no false positives, but may be some false negatives. The pattern / issue holds for all |
Started thinking about this a bit more. Another way to consider this is that the current implementation is ok if It also gets worse, any select<> buried inside a repeat creates this issue |
(a|ab)+
won't matchab
Found a fix, it's in branch
fix-for-cycles
, created tests to trigger this error, but it's a big performance regression because compiler can't see thru and optimise deep recursion.The text was updated successfully, but these errors were encountered: