-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
How to force slug-generator not to convert a comma? #18
Labels
Comments
Hi, thanks for the great feedback! You can use the validChars option to achieve this: $generator = new \Ausi\SlugGenerator\SlugGenerator;
$generator->generate('WordPress, Plugins WordPress', ['validChars' => 'a-z0-9,']); |
Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, thanks for your great product.
Now I am writing a plugin for CMS Grav, and I need a comma to not be cropped after processing the line.
For example, there was a line like this:
WordPress, Plugins WordPress
It became like this:
wordpress,plugins-wordpress
How do I get the comma to remain in the link?
The text was updated successfully, but these errors were encountered: