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

Titleize handlebar doesn't titleize input string correctly. #405

Open
Shashwat121 opened this issue Jan 30, 2022 · 0 comments
Open

Titleize handlebar doesn't titleize input string correctly. #405

Shashwat121 opened this issue Jan 30, 2022 · 0 comments

Comments

@Shashwat121
Copy link

Shashwat121 commented Jan 30, 2022

Hi there, hope you are doing well.

I am using the titleize handlebar in one of my application and came to witness that titleize handlerbar doesn't titleize the input string correctly.

For example, if the string is "jon-smith", the titleized version of it should be "Jon-Smith". Another example could be if the string is "a.b", the titleized version should be "A.B'. Input texts which have a space character in them are only titleized correctly. There might be an usecase where a and b in "a,b" are two different words and need to be titleized separately as "A.B", like for instance "jerry.thomas" titleized as "Jerry.Thomas".

Can we have a fix for this? If yes then I'd like to take this up and work on it going forward as I think we'd just need to tweek the regex expression defined in the titleize handlebar.

@Shashwat121 Shashwat121 changed the title Titleize handlerbar doesn Titleize handlerbar doesn't titleize input string correctly. Jan 30, 2022
@Shashwat121 Shashwat121 changed the title Titleize handlerbar doesn't titleize input string correctly. Titleize handlebar doesn't titleize input string correctly. Jan 30, 2022
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

1 participant