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 (and maybe other pipes?) separators as an option #84

Open
Helvio88 opened this issue Aug 9, 2024 · 0 comments
Open

Title Case (and maybe other pipes?) separators as an option #84

Helvio88 opened this issue Aug 9, 2024 · 0 comments

Comments

@Helvio88
Copy link

Helvio88 commented Aug 9, 2024

Is your feature request related to a problem? Please describe.
Title Case is a nice pipe, but it could be more customizable. For instance, some surnames like O'HARA would be cased to O'hara. A great solution would be to add an optional parameter for separator tokens.

Describe the solution you'd like
Something like: {{ my_string | titleCase : ' \n\t'-' }} would capitalize the characters after [SPACE], [NEWLINE], [TAB], Apostrophe or Dash.

Describe alternatives you've considered
None

Additional context
As stated before, useful for surnames, but could be further customized, too, per user.

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