From 0a950425e1726a9d94230451ccddcd7b28f94797 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 3 Sep 2021 01:55:05 +0100 Subject: [PATCH] Bugfix: fix new slugify function --- core/05-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/05-functions.php b/core/05-functions.php index 5dc6ee7..fbcfdfc 100644 --- a/core/05-functions.php +++ b/core/05-functions.php @@ -323,7 +323,7 @@ function makepathsafe($string) * @return string The slugified string. */ function slugify(string $text) : string { - return preg_replace("/[^a-zA-Z0-9\-_]", "", $text); + return preg_replace("/[^a-zA-Z0-9\-_]/", "", $text); } /**