-
Notifications
You must be signed in to change notification settings - Fork 443
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
Regex::is_match
unexpectedly returning false with regex-syntax v0.8.0
#1103
Comments
Thanks! I'll add this as a test case. There are probably a lot of them unfortunately. I clearly had too much confidence in the test suite. The issue is in the HIR:
The first command is with |
Thank you for taking a look and also explaining the issue :-) |
Licheam
added a commit
to Licheam/regex
that referenced
this issue
Oct 12, 2023
Fix the `push` function in rust-lang#1051
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi π
First, thank you for a fantastic crate!
What version of regex are you using?
Describe the bug at a high level.
Using
regex-syntax
v0.8.0, aRegex::is_match
that previously matched inregex-syntax
v0.7.4 no longer matches.Whilst the issue no longer reproduces as part of the
regex-syntax
v0.8.1 release (I would guess due to the revert in that release: #1102), I thought you might still wish to see the testcase in case it covers something that the newly added fuzz tests do not, ready for the future relanding of #1051.What are the steps to reproduce the behavior?
cargo new testcase && cd $_
cargo add [email protected]
cargo update -p regex-syntax --precise 0.8.0
main.rs
:cargo test
cargo update -p regex-syntax --precise 0.8.1
cargo test
What is the actual behavior?
cargo test
at step 5 (ie: when using regex-syntax v0.8.0) fails with the output belowcargo test
at step 7 (ie: when using regex-syntax v0.8.1) passesWhat is the expected behavior?
cargo test
passes regardless of regex-syntax version.Notes
[:alnum:]
in the regex with ega-z
then the issue stops reproducing.The text was updated successfully, but these errors were encountered: