Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
String#gsub given a String can avoid Regexp #5905
It appears in Ruby 2.2 a change by @nobu modified the logic to just call
We still do the old behavior, making this form of
The change in question is here: ruby/ruby@5752b61
Probably not a difficult one to duplicate in JRuby, for anyone who wants to do some spelunking.