From e18d859f8923ac565f72b73c7c3f9e5be46e6cbc Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Fri, 20 Sep 2024 10:32:22 +0200 Subject: [PATCH] Also replace the exclamation mark, comma & slashes --- src/helpers/StringHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/StringHelper.php b/src/helpers/StringHelper.php index 397ec54168f..97e8ffd6824 100644 --- a/src/helpers/StringHelper.php +++ b/src/helpers/StringHelper.php @@ -1805,7 +1805,7 @@ public static function toHandle(string $str): string $handle = static::stripHtml($str); // Remove inner-word punctuation - $handle = preg_replace('/[\'"‘’“”\[\]\(\)\{\}:]/', '', $handle); + $handle = preg_replace('/[!,\'"‘’“”\[\]\(\)\{\}\/\\:]/', '', $handle); // Make it lowercase $handle = static::toLowerCase($handle);