You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[^\D\d] is actually an empty character class, since [\D\d] says "match anything" and [^\D\d] says "match !anything."
The compiler assumes that empty character classes are impossible.
I'd like to fix this by more explicitly banning empty character classes. Other regex engines actually allow them and treat them as "never match anything." It seems more sensible (and more conservative) to just ban them outright.
AFL found this regex which causes
Regex::new()
inregex-0.1.71
to callOption::unwrap()
on a None-value, causing a panicThe text was updated successfully, but these errors were encountered: