-
Notifications
You must be signed in to change notification settings - Fork 99
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
Numerous incorrect regex results #130
Comments
Possibly related: Chrome/FF:
mujs:
|
Here's another: Chrome/FF:
mujs:
Note that space in the first array entry. |
Another one: Chrome/FF:
mujs:
|
Another couple: Browsers:
mujs:
But (FWIW, i'm not actively searching for these, just stumbling across them while testing my own code, which uses |
It's still an issue with the latest commit, even simplest split regexp doesn't work: % node -e 'console.log("test".split(/./))'
[ '', '', '', '', '' ]
% mujs
> "test".split(/./)
["t", "s", ""] |
The "empty string at end of last match" should only trigger if the match is empty!
In Firefox and Chrome:
In mujs (current version as of about an hour ago):
The text was updated successfully, but these errors were encountered: