Skip to content

Commit

Permalink
Fixed Issue magento#13689
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranosys committed May 4, 2019
1 parent ed8b676 commit 690fdb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/Filter/TranslitUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TranslitUrl extends Translit
*/
public function filter($string)
{
$string = preg_replace('#[^0-9a-z]+#i', '-', parent::filter($string));
$string = preg_replace(array('/\d/', '/\s/'), '-', parent::filter($string));
$string = strtolower($string);
$string = trim($string, '-');

Expand Down

0 comments on commit 690fdb8

Please sign in to comment.