diff options
author | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2019-02-05 13:42:33 -0500 |
---|---|---|
committer | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2019-02-05 13:48:25 -0500 |
commit | 7caea98e189c02721b2e944a074c405b033852eb (patch) | |
tree | d6f384f3608065c84b2dc3ddc79a1579fd792a21 /actionview/lib | |
parent | deca8c52300ff59a98a138f94a33834725511a0b (diff) | |
parent | f8696b888e6ac2984927a074de60b2c5bad9bc59 (diff) | |
download | rails-7caea98e189c02721b2e944a074c405b033852eb.tar.gz rails-7caea98e189c02721b2e944a074c405b033852eb.tar.bz2 rails-7caea98e189c02721b2e944a074c405b033852eb.zip |
Merge branch 'float_dom_ids'
Closes #34975.
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 eef527d36f..0adecf362a 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:]]]/, "").mb_chars.downcase.to_s end def select_content_tag(option_tags, options, html_options) |