We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c28c489 commit cf8e2fbCopy full SHA for cf8e2fb
src/Slugify.php
@@ -41,7 +41,7 @@ private function evaluate(array $context, string $value, string $divider = '-'):
41
{
42
$text = preg_replace('~[^\pL\d]+~u', $divider, $value);
43
$text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);
44
- $text = preg_replace('~[^-\w]+~', '', $text);
+ $text = preg_replace('~[^\-\w]+~', '', $text);
45
$text = trim($text, $divider);
46
$text = preg_replace('~-+~', $divider, $text);
47
$text = strtolower($text);
0 commit comments