| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Switch from using String#match to using String#=~. There's no need to
generate a MatchData for each iteration since we're not using it.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
|
|
|
|
|
| |
Replace explicit for-loops by faster enumeration methods.
[#3158 state:committed]
|
| |
|
|
|
|
|
|
|
|
| |
ActiveSupport::Multibyte#clean and #verify.
[#3181 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
|
When accepting character input from outside of your application you can't
blindly trust that all strings are properly encoded. With these methods
you can check incoming strings and clean them up if necessary.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Conflicts:
activesupport/lib/active_support/multibyte.rb
|