mirror of
https://github.com/github/rails.git
synced 2026-01-26 06:48:59 -05:00
Change call to String#chars in inflector to String#mb_chars.
This commit is contained in:
@@ -257,7 +257,7 @@ module ActiveSupport
|
||||
# <%= link_to(@person.name, person_path %>
|
||||
# # => <a href="/person/1-donald-e-knuth">Donald E. Knuth</a>
|
||||
def parameterize(string, sep = '-')
|
||||
string.chars.normalize(:kd).to_s.gsub(/[^\x00-\x7F]+/, '').gsub(/[^a-z0-9_\-]+/i, sep).downcase
|
||||
string.mb_chars.normalize(:kd).to_s.gsub(/[^\x00-\x7F]+/, '').gsub(/[^a-z0-9_\-]+/i, sep).downcase
|
||||
end
|
||||
|
||||
# Create the name of a table like Rails does for models to table names. This method
|
||||
|
||||
Reference in New Issue
Block a user