X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/e63d9bc97a04027f2bf6b53341d47537eb261c1b..21a186cac517f7e1cb531c04058e5806d16752b9:/Utils/Slugger.php diff --git a/Utils/Slugger.php b/Utils/Slugger.php index 9a33e6d..e781fa5 100644 --- a/Utils/Slugger.php +++ b/Utils/Slugger.php @@ -107,7 +107,7 @@ class Slugger { //Use Transliterator if available if (class_exists('Transliterator')) { $trans = Transliterator::create('Any-Latin; Latin-ASCII; Lower()'); - return preg_replace(['/[^a-zA-Z0-9\.]+/', '/(^-+|-+$)/', '/\.[^\.]+$/'], ['-', '', ''], $trans->transliterate($string)); + return preg_replace(['/[^a-zA-Z0-9]+/', '/(^-+|-+$)/'], ['-', ''], $trans->transliterate($string)); } return preg_replace('/[\/_|+ -]+/', '-', strtolower(trim(preg_replace('/[^a-zA-Z0-9\/_|+ -]/', '', str_replace(['\'', '"'], ' ', iconv('UTF-8', 'ASCII//TRANSLIT', $string))), '-'))); }