Skip to content

Commit

Permalink
magento#13689 - category url key accept all language including specia…
Browse files Browse the repository at this point in the history
…l charaters
  • Loading branch information
pradeep-wagento committed May 4, 2019
1 parent 19fcb92 commit 84d390c
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('/\s+/', '-', parent::filter($string));
$string = strtolower($string);
$string = trim($string, '-');

Expand Down

0 comments on commit 84d390c

Please sign in to comment.