提交 98e380f0 编写于 作者: R Ryuta Kamizono

Ruby 2.4 and later support native Unicode case mappings

Here is only place where we use `mb_chars` internally.
上级 304d8259
......@@ -138,7 +138,7 @@ def sanitized_method_name
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册