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

Add trim option #189

Merged
merged 1 commit into from
Oct 12, 2017
Merged

Conversation

sforsberg
Copy link
Contributor

What? Why?

Adds trim as an available option which allows the user to specify whether or not the slug should be trimmed. By default this still trims the separator from the slug before returning.

If the trim option is set to false, the slug will not be trimmed and will return exactly as it was after preg_replace().

NOTE

I attempted to make sure all framework integrations were updated, but if I missed something let me know!

@florianeckerstorfer florianeckerstorfer merged commit e1564e8 into cocur:master Oct 12, 2017
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

Successfully merging this pull request may close these issues.

2 participants