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

Sort alternation options #14

Merged
merged 1 commit into from
Mar 18, 2017
Merged

Sort alternation options #14

merged 1 commit into from
Mar 18, 2017

Conversation

devongovett
Copy link
Owner

Fixes #10. Flattens alternations so that a single node may have more than 2 options, and sorts the options by length. This is necessary since regex alternations short circuit: they return the first matching option, not necessarily the longest.

@devongovett
Copy link
Owner Author

@mathiasbynens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant