diff options
author | Mark Edmondson <mark.edmondson@gmail.com> | 2019-01-18 15:56:12 -0800 |
---|---|---|
committer | Mark Edmondson <mark.edmondson@gmail.com> | 2019-01-25 10:04:23 -0800 |
commit | f8696b888e6ac2984927a074de60b2c5bad9bc59 (patch) | |
tree | 070b1154b993bdf4f6957e2399324f9dfe3bb95e /actionview/lib/action_view/helpers | |
parent | 3c6cfdf7adf4848976b7f425b1811d447b130f6a (diff) | |
download | rails-f8696b888e6ac2984927a074de60b2c5bad9bc59.tar.gz rails-f8696b888e6ac2984927a074de60b2c5bad9bc59.tar.bz2 rails-f8696b888e6ac2984927a074de60b2c5bad9bc59.zip |
Fix unique DOM IDs for collection inputs
Diffstat (limited to 'actionview/lib/action_view/helpers')
-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) |