Skip to content

Humanize function should replace hyphens with spaces #42

Closed
@codytooker

Description

@codytooker

First off I would like to say this library is great and helps tremendously with breadcrumbs.

I would like to suggest though that hyphens should be treated just like underscores in the default setting. Hyphens in url's are way more often two words put together and not an actual hyphenated word.

I would like to suggest making this update to the Humanize function in the library. I know this would probably require a major version bump since it would potentially break some peoples use cases. So an alternative could be to instead an option to useBreadCrumbs that allows the user to implement their own default handling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions