Skip to content
New issue

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

adds decamelize #477

Closed
wants to merge 1 commit into from
Closed

adds decamelize #477

wants to merge 1 commit into from

Conversation

stoeffel
Copy link
Collaborator

this is a clean up PR of #467.
Thanks to @dgolman.

closes #467 #407.

equal(decamelize('theDecamelizeStringMethod'), 'the_decamelize_string_method');
equal(decamelize('webkitTransform', '-'), 'webkit-transform');
equal(decamelize('theDecamelizeStringMethod_', ''), 'thedecamelizestringmethod_');
equal(decamelize('TheDecamelizeStringMethod', '-'), 'the-decamelize-string-method');
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did just see that decamelize behaves different to dasherize when a string starts with an uppercase letter.

equal(dasherize('TheDasherizeStringMethod'), '-the-dasherize-string-method');

IMO this is okay. But I will add it to the docs if you guys agree with that.

// cc @epeli @dgolman

@megawac
Copy link
Contributor

megawac commented Jul 22, 2016

👍

@stoeffel stoeffel closed this Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants