We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
String#split behaves differently from MRI in certain cases.
String#split
" ".split(" ") # or equivalently, " ".split
In TruffleRuby 21.3.0, this yields [" "]. In MRI (both 2.7.5 and 3.1.0 tested), this yields [].
[" "]
[]
The text was updated successfully, but these errors were encountered:
Indeed, thanks for the report (" " as argument is special and awk-like splitting, same as no arg). @bjfish Could you fix it?
" "
Sorry, something went wrong.
@dazuma This is now fixed at 6dd971c. Thanks!
bjfish
No branches or pull requests
String#split
behaves differently from MRI in certain cases.In TruffleRuby 21.3.0, this yields
[" "]
.In MRI (both 2.7.5 and 3.1.0 tested), this yields
[]
.The text was updated successfully, but these errors were encountered: