Bugfix: fix new slugify function

This commit is contained in:
Starbeamrainbowlabs 2021-09-03 01:55:05 +01:00
parent de4536e173
commit 0a950425e1
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**