Skip to content

Commit cf8e2fb

Browse files
committed
[rector] Rector fixes
1 parent c28c489 commit cf8e2fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Slugify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private function evaluate(array $context, string $value, string $divider = '-'):
4141
{
4242
$text = preg_replace('~[^\pL\d]+~u', $divider, $value);
4343
$text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);
44-
$text = preg_replace('~[^-\w]+~', '', $text);
44+
$text = preg_replace('~[^\-\w]+~', '', $text);
4545
$text = trim($text, $divider);
4646
$text = preg_replace('~-+~', $divider, $text);
4747
$text = strtolower($text);

0 commit comments

Comments
 (0)