-
Notifications
You must be signed in to change notification settings - Fork 608
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
Bug in split with a positive lookahead assertion #1690
Comments
Actually looking at this after i've had sleep it looks like I accidentally stumbled on two separate issues, one is the split with the regex the second is _ in map.
Should I open a separate issue for the _ in map context or keep it in this issue? To be honest I rarely use _ like this but just happened to type it in pry this one time. 1.9.3-p194 behaves as expected. |
I've written a patch that seems to fix a problem with split https://gist.github.com/81e25b635f26a1cb85d2 |
I modified the spec the other day while working on this issue, but did not commit it. Seems that @kronos patch fix the problem. |
Problem with "_" isn't fixed but I think it's another issue |
@kronos The issue with _ is indeed another issue, about to push a fix for that. |
Seems to be introducing extraneous blank elements when used with split.
Example CamelCase=>snake_case convertor on ruby 1.9.3.
And on a recentish (pulled today) rbx, the downcase on Nil is pointless.
Jruby 1.6.7 appears to behave as ruby 1.9.3.
The text was updated successfully, but these errors were encountered: