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

Calling camelCase on string that's already camel cased #2

Closed
andrey-p opened this issue Oct 25, 2013 · 1 comment
Closed

Calling camelCase on string that's already camel cased #2

andrey-p opened this issue Oct 25, 2013 · 1 comment

Comments

@andrey-p
Copy link

Ran into an issue trying to normalise some strings. Trying to camelCase a string that's camel cased and contains two words works as expected:

changeCase.camelCase("fooBar");
// outputs fooBar

More than three words seems to break it though:

changeCase.camelCase("fooBarBaz");
// outputs fooBarbaz
@blakeembrey
Copy link
Owner

@andrey-p Nice catch, just pushed a fix out for this. Thanks!

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

No branches or pull requests

2 participants