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

Spaces are not removed from camelCase() #5

Open
TheOtherDude opened this issue Jul 30, 2017 · 1 comment
Open

Spaces are not removed from camelCase() #5

TheOtherDude opened this issue Jul 30, 2017 · 1 comment

Comments

@TheOtherDude
Copy link

TheOtherDude commented Jul 30, 2017

This is pretty easy to reproduce, but my specific test case is 'Managed Service' => 'managed Service'

@pykong
Copy link
Contributor

pykong commented Aug 4, 2017

The question is this: Design or Flaw?
How should a string like 'Managed Service' be understood in the first place?
As one word with an internal space or two distinct ones separated by space.

The camelcase function should actually replace spaces, though according to code.

Yet, related is the following behavior, clearly a bug:
TitleCase duplicates spaces for me.

'Managed . Service' => Managed .. Service'
(dots mean spaces here for better legibility.)

As titlecase() wraps camelcase().
Similar errors for other functions wrapping camelcase()

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