Skip to content
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

Combining Non-capturing groups and alternation causes a panic #11

Open
Ryan1729 opened this issue Apr 4, 2020 · 0 comments
Open

Combining Non-capturing groups and alternation causes a panic #11

Ryan1729 opened this issue Apr 4, 2020 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Ryan1729
Copy link

Ryan1729 commented Apr 4, 2020

If I enter in the following regex and subject then the capture list on the right doesn't update and the javascript console reports a panic:
Regex:

(?:a(b+)c)|(b+)d

Subject:

abc
bbd

This same regex and subject work as expected in the rust playground.

Either of (?:a(b+)c) or (b+)d work as expected in rustexp, and (?:a(b+)c)(b+)d even works too.

@lpil lpil added bug Something isn't working help wanted Extra attention is needed labels Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants