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
thread 'main' panicked at 'tried to unwrap expr from HirFrame, got: Group { old_flags: None }', /root/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/regex-syntax-0.6.2/src/hir/translate.rs:203:18
This fixes yet another bug with our handling of (?flags) directives in
the regex. This time, we try to be a bit more principled and
specifically treat a (?flags) directive as a valid empty sub-expression.
While this means we could remove errors reported from previous fixes for
things like `(?i)+`, we retain those for now since they are a bit weird.
Although `((?i))+` is now allowed, which is equivalent. We should
probably allow `(?i)+` in the future for consistency sake.
Fixes#527
While fuzzing the
regex_syntax
target from https://github.com/rust-fuzz/targets, I hit this panic:Here is the regex:
playground
The text was updated successfully, but these errors were encountered: