From bbdd05e4ae572d5a4fe7d676e2cc361387220f74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sun, 29 Nov 2020 08:37:04 +0100 Subject: [PATCH] Remove dot and extension cleaning --- Utils/Slugger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))), '-'))); } -- 2.41.1