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

Why to remove "_" and "-" from the end and beginning? #84

Closed
angelcervera opened this issue Nov 6, 2023 · 2 comments · Fixed by #91
Closed

Why to remove "_" and "-" from the end and beginning? #84

angelcervera opened this issue Nov 6, 2023 · 2 comments · Fixed by #91

Comments

@angelcervera
Copy link

angelcervera commented Nov 6, 2023

What is the reason because is removing - and _ from the begging and the end of the name. I want to represent an endpoint for a item that is named ______. How to do it in your case?

Real example: Magic The Gathering card

@bayaderpack
Copy link

Its not really seo friendly

@matrixik
Copy link
Member

Sorry it took so long.
I added two settings that disable trimming:

	// DisableMultipleDashTrim defines if multiple dashes should be preserved.
	// Default is false (multiple dashes will be replaced with single dash).
	DisableMultipleDashTrim = false

	// DisableEndsTrim defines if the slug should keep leading and trailing
	// dashes and underscores. Default is false (trim enabled).
	DisableEndsTrim = false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants