-
Notifications
You must be signed in to change notification settings - Fork 445
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
More NotWordBoundaryAscii woes #264
Comments
A smallerish repro: extern crate regex;
fn main() {
let re0 = regex::Regex::new(r"(?-u)\B").unwrap();
let re1 = regex::Regex::new(r"(?-u)(\B)").unwrap();
let s = "\u{28f3e}";
assert!(re0.is_match(s));
assert!(re1.is_match(s));
assert!(re0.find(s).is_some());
assert!(re1.find(s).is_some());
assert!(re0.captures(s).is_some());
assert!(re1.captures(s).is_some());
} |
The above actually fails on the last assert. My guess is that something about the DFA -> NFA interaction is bunk, because the presence of the capture group and the call to |
Indeed. The code was trying to be cute about setting the end of the haystack. In this case, it was adding |
I'm sorry to say that another version of issue #241 has reared its ugly head.
Running
Group { e: NotWordBoundaryAscii, i: Some(1), name: None }
against"\u{28f3e}"
in the same way as in that issue gives the matchNone
with the DFA, butSome((0, 0))
with the NFA.The text was updated successfully, but these errors were encountered: