1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

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

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