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

Camel-cased strings with one-letter parts lead to unexpected results #1

Closed
Golmote opened this issue Jun 18, 2013 · 1 comment
Closed

Comments

@Golmote
Copy link

Golmote commented Jun 18, 2013

This is correct :
Case.camel('This is a test') === "thisIsATest"

But the contrary seems unexpected :
Case.upper('thisIsATest') === "THIS IS ATEST"
Case.lower('thisIsATest') === "this is atest"
and the same goes for other manipulations

@nbubna
Copy link
Owner

nbubna commented Jun 18, 2013

Hmm. I thought i'd fixed that. Clearly i didn't write a test for it. It's a side effect of trying to support acronyms like my employer's name (ESHA). When busting them out of camel/squish, it's supposed to keep serial caps together and break at the last one before the caps end. Instead it is keeping them with the following word. I have no time to work on it now. Maybe Thursday... Of course, you are welcome to beat me to it. :)

@nbubna nbubna closed this as completed in dca14f6 Jun 20, 2013
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