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

String#tr different behavior as compared to MRI Ruby #3425

tgxworld opened this Issue Oct 25, 2015 · 1 comment


None yet
2 participants
Copy link

tgxworld commented Oct 25, 2015


irb(main):001:0> "5".tr('^0-9', "_")
=> "_"

MRI 2.2.3

irb(main):001:0> "5".tr('^0-9', "_")
=> "5"

@tgxworld tgxworld changed the title String#tr different behavior against MRI Ruby String#tr different behavior as compared to MRI Ruby Oct 25, 2015

@lopex lopex closed this in 9f33263 Oct 28, 2015


This comment has been minimized.

Copy link

tgxworld commented Oct 29, 2015

Thanks @lopex!

@enebo enebo added this to the JRuby milestone Nov 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.