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

Title case bring space in Capitalized Word like HBO #5

Open
samycodes opened this issue May 21, 2019 · 3 comments
Open

Title case bring space in Capitalized Word like HBO #5

samycodes opened this issue May 21, 2019 · 3 comments

Comments

@samycodes
Copy link

If a word contains works like HBO or CNG etc, after formatting it bring spaces between them like H B O or C N G.

Can anyone help me how to resolve it?

Thanks

@nitehogg
Copy link
Collaborator

I've had another request recently to better handle acronyms. I have some ideas, but to really handle acronyms, it gets really tricky. I'll probably push it out as 3.x.

@cirediew
Copy link

Any news on this? I'd love to see this fixed too.

For anyone else facing this issue this is my temporary solution:

"LED light"
.replaceAll("LED", "Led")
.sentenceCase
.replaceAll("Led", "LED");

But you'd have to do this for every occurrence.

@jodinathan
Copy link

jodinathan commented Jan 31, 2022

I am using this package extensively on package js_bindings and was wondering if there could be an option on how to handle acronyms or something like that?

'EXT_blend_minmax'.makeCamelCase(acronyms: Acronyms.lowerEverything); // extBlendMinmax

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

4 participants