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

{{camelcase}} helper does not camelCase without space in the string #363

Open
matthieu-sofa opened this issue Mar 18, 2020 · 1 comment
Open
Labels

Comments

@matthieu-sofa
Copy link

matthieu-sofa commented Mar 18, 2020

Note: Jon asked me to put this here after I reached out to him via mail. Because it seems to be a bug.

I'm reaching out to you to ask you a quick question about handlebars-helpers (awesome package by way, thanks a lot).

I want to transform a basic string "PascalCase" into camel case => "pascalCase"

I tried to use the {{camelcase}} helper (here https://www.npmjs.com/package/handlebars-helpers#camelcase)

but unfortunately it transforms a string into camel case string only if words in the string are separated by a space caracter :

Example

{{camelcase "foo bar baz"}};

Do you know what can be a workaround for this to get :

Example

{{camelcase "FooBarBaz"}};

Thanks a lot for your help.

@matthieu-sofa
Copy link
Author

Seems to be the same issue as this one : #259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants