Skip to content

Allow hyphenated words option in titleize method. #197

@leigh-ols

Description

@leigh-ols

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'.

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