-
Notifications
You must be signed in to change notification settings - Fork 77
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
Difficulty generating a slug with / and , #73
Comments
Ah yes, it simply strips those out by default. An easier way to add them would be to do this: <?php
require_once 'vendor/autoload.php';
URLify::add_chars ([
'/' => '-',
',' => '-'
]);
echo URLify::slug ('Bomba Submersa 1/4HP 0,25 110V Lepono') . PHP_EOL; Hope that helps! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When generating a slug that contains
/
and,
, it replaces these characters with nothing, when it should correctly replace them with aseparator
.I modified the following code snippet:
To:
And it worked correctly.
The text was updated successfully, but these errors were encountered: