rails/rails — pull request #17308 by pabloh (2014-10-18 06:49:47+00:00)
Title: Do gsub with a regexp instead of a string

String#gsub works around 13% faster when using a Regexp in lieu of a String.