Bugfix: fix new slugify function
This commit is contained in:
parent
de4536e173
commit
0a950425e1
|
@ -323,7 +323,7 @@ function makepathsafe($string)
|
||||||
* @return string The slugified string.
|
* @return string The slugified string.
|
||||||
*/
|
*/
|
||||||
function slugify(string $text) : string {
|
function slugify(string $text) : string {
|
||||||
return preg_replace("/[^a-zA-Z0-9\-_]", "", $text);
|
return preg_replace("/[^a-zA-Z0-9\-_]/", "", $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue