[src/main.rs:8:5] regex::Regex::new(pattern).unwrap().find_iter(haystack).collect::<Vec<_>>() = [
Match {
start: 0,
end: 0,
string: "",
},
Match {
start: 1,
end: 1,
string: "",
},
Match {
start: 2,
end: 3,
string: "a",
},
]
[src/main.rs:9:5] regex_lite::Regex::new(pattern).unwrap().find_iter(haystack).collect::<Vec<_>>() = [
Match {
start: 0,
end: 0,
string: "",
},
Match {
start: 1,
end: 3,
string: "ba",
},
]
I don't know, but the same behavior for both. I found it through fuzzing.
What version of regex are you using?
regex == 1.12.3regex_lite == 0.1.9Describe the bug at a high level.
An empty lazy (
??) match has different behavior between the two engines.What are the steps to reproduce the behavior?
What is the actual behavior?
What is the expected behavior?
I don't know, but the same behavior for both. I found it through fuzzing.