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

Allow hyphenated words option in titleize method. #197

Open
leigh-ols opened this issue May 13, 2019 · 3 comments
Open

Allow hyphenated words option in titleize method. #197

leigh-ols opened this issue May 13, 2019 · 3 comments

Comments

@leigh-ols
Copy link

leigh-ols commented May 13, 2019

At present hyphenated words such as 'up-to-date' would become 'Up-to-date'.

Allowing the option of treating hyphenated words as a individual words would be a nice feature:

s('up-to-date')->titleize(['to'], [' ', '-']);

Would return 'Up-to-Date'.

@voku
Copy link

voku commented Aug 21, 2019

@leigh-ols I added the feature in this fork, maybe you can take a look here: voku@84b6c1e#diff-81e55517d73634753e211bc2deebe9c0R4319

@leigh-ols
Copy link
Author

@voku Any chance of a pull request on this one? @danielstjules Would you be willing to implement this?

@alexeyshockov
Copy link
Contributor

@leigh-ols, this repo seems abandoned since 2017... (#198)

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

3 participants