Closed ushi-as closed 7 years ago
String#tr accepts two strings as arguments. Not a RegExp.
String#tr
See: https://ruby-doc.org/core-2.3.3/String.html#method-i-tr
It raises: no implicit conversion of Regexp into String at the moment.
no implicit conversion of Regexp into String
[ ] Update Changelog following the conventions laid out on Keep A Changelog
[ ] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[ ] RuboCop passes
[ ] Existing tests pass
[ ] Tests
[ ] Add the plugin to the README
[ ] Does it have a complete header as outlined here
Thanks for the PR. I ended up merging #65 which does virtually the same thing. The fix is in 2.0.2 which is now live on Rubygems.
String#tr
accepts two strings as arguments. Not a RegExp.See: https://ruby-doc.org/core-2.3.3/String.html#method-i-tr
It raises:
no implicit conversion of Regexp into String
at the moment.Pull Request Checklist
General
[ ] Update Changelog following the conventions laid out on Keep A Changelog
[ ] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[ ] RuboCop passes
[ ] Existing tests pass
New Plugins
[ ] Tests
[ ] Add the plugin to the README
[ ] Does it have a complete header as outlined here
Purpose
Known Compatablity Issues