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

Make String#split(/re/) obey "limit" argument. #521

Merged
merged 1 commit into from
Mar 24, 2014
Merged

Conversation

mieko
Copy link
Contributor

@mieko mieko commented Mar 24, 2014

This would close #512, and passes +9 specs for the low, low price of -1.

Seriously, though: Any insight into the encoding issue would be appreciated.

@meh
Copy link
Member

meh commented Mar 24, 2014

Throw that failing spec in spec/opal/filters/unsupported/encoding.rb please, it was a coincidence it was passing.

We keep the fast path where possible, but otherwise process the limit manually.
@mieko
Copy link
Contributor Author

mieko commented Mar 24, 2014

Failed spec moved.

meh added a commit that referenced this pull request Mar 24, 2014
Make String#split(/re/) obey "limit" argument.
@meh meh merged commit b8fd3d4 into opal:master Mar 24, 2014
@meh
Copy link
Member

meh commented Mar 24, 2014

Thanks!

@mieko mieko deleted the split branch March 26, 2014 19:08
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.

String#split has unexpected empty strings
2 participants