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

Small feature request: Humanize dash #178

Open
stillawakemedia opened this issue Feb 15, 2018 · 0 comments
Open

Small feature request: Humanize dash #178

stillawakemedia opened this issue Feb 15, 2018 · 0 comments

Comments

@stillawakemedia
Copy link

I think it would be beneficial to add the capability for the humanize method to format dashes to make the transition between slugify and humanize easier without having to use the replace method to remove dashes and add spaces.

For example right now I would have to do this:
Stringy::create('some-slug-text')->replace('-', ' ')->humanize()

This would be nice:
Stringy::create('some-slug-text')->humanize()

Not a big deal, just something I do often in a project I am working on.

I can submit a PR for it if you like.

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