We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5d82e2 + fa1ea34 commit 2eb4ebeCopy full SHA for 2eb4ebe
activesupport/lib/active_support/multibyte/chars.rb
@@ -133,7 +133,7 @@ def capitalize
133
# "ÉL QUE SE ENTERÓ".mb_chars.titleize # => "Él Que Se Enteró"
134
# "日本語".mb_chars.titleize # => "日本語"
135
def titleize
136
- chars(downcase.to_s.gsub(/\b('?[\S])/u) { Unicode.upcase($1)})
+ chars(downcase.to_s.gsub(/\b('?\S)/u) { Unicode.upcase($1)})
137
end
138
alias_method :titlecase, :titleize
139
0 commit comments