We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
capitalize
Looking at the tests and implementation, it seems that characters following forward slashes are meant to be capitalized:
"privateDocs/ownerInvoice".capitalize() => "PrivateDocs/OwnerInvoice"
"privateDocs/ownerInvoice".capitalize()
"PrivateDocs/OwnerInvoice"
This also currently happens for multiple forward slashes though which seems like a bug to me:
"the url is http://www.ember.com/".capitalize() => "The url is http://Www.ember.com/" (note the Www)
"the url is http://www.ember.com/".capitalize()
"The url is http://Www.ember.com/"
Www
The text was updated successfully, but these errors were encountered:
@locks pointed me to the RFC to deprecate Ember.String and supporting issue.
Ember.String
I'll read those and come back with a plan
Sorry, something went wrong.
I've been using change-case https://github.com/blakeembrey/change-case
does that have better behavior? (or more customizable behavior?)
I think that's a good enough alternative now that @ember/string isn't a core module.
@ember/string
locks
Successfully merging a pull request may close this issue.
Looking at the tests and implementation, it seems that characters following forward slashes are meant to be capitalized:
"privateDocs/ownerInvoice".capitalize()
=>"PrivateDocs/OwnerInvoice"
This also currently happens for multiple forward slashes though which seems like a bug to me:
"the url is http://www.ember.com/".capitalize()
=>"The url is http://Www.ember.com/"
(note the
Www
)The text was updated successfully, but these errors were encountered: