-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I substituted the Rails titlecase method for UnicodeUtils::titlecase, because of UTF-8 characters. I noticed the behavior is not exactly the same, even when no special chars are involved. For example:
Capitalized letter within word:
> "CompanyName".titlecase
=> "Company Name"
> UnicodeUtils.titlecase "CompanyName"
=> "Companyname"Words than contain periods:
> "Company X.Y.Z.".titlecase
=> "Company X.Y.Z."
> UnicodeUtils.titlecase "Company X.Y.Z."
=> "Company X.y.z."Is this intentional for some reason? It would be interesting if unicode_utils preserved the original behavior and dealt only with the special chars.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels