File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1166,6 +1166,7 @@ public function slugify($replacement = '-')
11661166 {
11671167 $ stringy = $ this ->toAscii ();
11681168
1169+ $ stringy ->str = str_replace ('@ ' , $ replacement , $ stringy );
11691170 $ quotedReplacement = preg_quote ($ replacement );
11701171 $ pattern = "/[^a-zA-Z\d\s-_ $ quotedReplacement]/u " ;
11711172 $ stringy ->str = preg_replace ($ pattern , '' , $ stringy );
Original file line number Diff line number Diff line change @@ -1108,7 +1108,7 @@ public function slugifyProvider()
11081108 ['another-foo-bar ' , 'another..& foo -.-"-...bar ' ],
11091109 ['foo-dbar ' , " Foo d'Bar " ],
11101110 ['a-string-with-dashes ' , 'A string-with-dashes ' ],
1111- ['userhost ' , 'user@host ' ],
1111+ ['user-host ' , 'user@host ' ],
11121112 ['using-strings-like-foo-bar ' , 'Using strings like fòô bàř ' ],
11131113 ['numbers-1234 ' , 'numbers 1234 ' ],
11141114 ['perevirka-ryadka ' , 'перевірка рядка ' ],
You can’t perform that action at this time.
0 commit comments