From 9c19b4464e84e2afc874346368c1ab20ca9b36fb Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 17 Jul 2023 18:21:33 +0200 Subject: [PATCH] wip #6135 @0.25 --- src/Text.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text.php b/src/Text.php index d282c81..c90d0a5 100644 --- a/src/Text.php +++ b/src/Text.php @@ -283,7 +283,7 @@ class Text $str = self::deaccent($str); $str = preg_replace('/[^A-Za-z0-9_\s\'\:\/[\]-]/', '', $str); - return self::tidyURL($str, true); + return self::tidyURL($str, true,false); } @@ -776,7 +776,7 @@ class Text } if (!$keep_spaces) { - $str = str_replace(' ', '-', $str); + $str = preg_replace('/\s+/', '-', $str); } $str = preg_replace('/[-]+/', '-', $str); -- 2.39.5