diff --git a/src/Stringy.php b/src/Stringy.php index ccb6f5a..f2a77d6 100644 --- a/src/Stringy.php +++ b/src/Stringy.php @@ -1170,7 +1170,7 @@ public function slugify($replacement = '-', $language = 'en') $stringy->str = str_replace('@', $replacement, $stringy); $quotedReplacement = preg_quote($replacement); - $pattern = "/[^a-zA-Z\d\s-_$quotedReplacement]/u"; + $pattern = "/[^a-zA-Z\\d\\s\\-_$quotedReplacement]/u"; $stringy->str = preg_replace($pattern, '', $stringy); return $stringy->toLowerCase()->delimit($replacement)