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

fix weird falsy mArr #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

gabeklein
Copy link

@gabeklein gabeklein commented May 14, 2019

This fixes the "weird situation that shouldn't ever happen", the cause is that RegExp is actually not stateless. It has a "cursor" so if you run exec multiple times, it will only search after the last match.

This was causing some of my own exports to be invisible (since fallback ignores the export), so I went in to discover why.

Simple solution really but definitely weird!

More info on the cause of this issue.

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