Skip to content

Small feature request: Humanize dash #178

@stillawakemedia

Description

@stillawakemedia

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions