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
{{ message }}
This repository was archived by the owner on May 29, 2023. It is now read-only.
Fix alternations with empty sub-expressions with regex >= 0.2.7
With regex 0.2.7 and higher, the trick to rewrite `(a|b|)` to
`(a|b|.{0})` doesn't work anymore, it fails with this error:
> alternations cannot currently contain empty sub-expressions
So delegate it like this instead: `((?:a|b)?)`
0 commit comments