diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-18 02:27:47 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-18 02:27:47 +0900 |
commit | 98e380f02452ee2597d122c76fd6b3a802f73333 (patch) | |
tree | 912461afbc326a3a0d0e42e77193e2f0dae29914 /actionview/lib | |
parent | 304d82597b300b3070ab5c3e48619edd52033207 (diff) | |
download | rails-98e380f02452ee2597d122c76fd6b3a802f73333.tar.gz rails-98e380f02452ee2597d122c76fd6b3a802f73333.tar.bz2 rails-98e380f02452ee2597d122c76fd6b3a802f73333.zip |
Ruby 2.4 and later support native Unicode case mappings
Here is only place where we use `mb_chars` internally.
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/tags/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/tags/base.rb b/actionview/lib/action_view/helpers/tags/base.rb index 0adecf362a..b58e1a6680 100644 --- a/actionview/lib/action_view/helpers/tags/base.rb +++ b/actionview/lib/action_view/helpers/tags/base.rb @@ -138,7 +138,7 @@ module ActionView end def sanitized_value(value) - value.to_s.gsub(/[\s\.]/, "_").gsub(/[^-[[:word:]]]/, "").mb_chars.downcase.to_s + value.to_s.gsub(/[\s\.]/, "_").gsub(/[^-[[:word:]]]/, "").downcase end def select_content_tag(option_tags, options, html_options) |