-
Notifications
You must be signed in to change notification settings - Fork 452
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
Unexpected match failure #234
Comments
That looks correct to me. I haven't actually tried it, but since |
Thanks, I should have probably been able to figure that out. ;) How about running That should match right? |
Yup, it should, and it looks like it doesn't in |
The responsible commit is: [37b6d31] Reintroduce the reverse suffix literal optimization. |
@SeanRBurton Thank you for tracking that down! Should be much easier to fix now. |
OK, I the cause is actually in |
It turns out that we weren't compute suffix literals correctly in all cases. In particular, the bytes from a Unicode character were being reversed.
It turns out that we weren't compute suffix literals correctly in all cases. In particular, the bytes from a Unicode character were being reversed.
I'm not sure if I'm doing something wrong, but I think this should match. It seems the issue is that '\u{f1}' is not valid ascii, and it's unclear from the docs what the behaviour should be here, but in re_builder.rs the byte builder is defined such that 'only_utf8' is false.
Thanks
The text was updated successfully, but these errors were encountered: