chore(*): remove duplicate cache rule + cleanup cache headers; cleanup + formatting
This commit is contained in:
parent
425fed6ff6
commit
0e565970a5
42 changed files with 223 additions and 217 deletions
|
@ -1,14 +1,8 @@
|
|||
<?php
|
||||
function sanitizeMediaString(string $str): string
|
||||
{
|
||||
$sanitizedString = preg_replace(
|
||||
"/[^a-zA-Z0-9\s-]/",
|
||||
"",
|
||||
iconv("UTF-8", "ASCII//TRANSLIT", $str)
|
||||
);
|
||||
$sanitizedString = preg_replace("/[^a-zA-Z0-9\s-]/", "", iconv("UTF-8", "ASCII//TRANSLIT", $str));
|
||||
|
||||
return strtolower(
|
||||
trim(preg_replace("/[\s-]+/", "-", $sanitizedString), "-")
|
||||
);
|
||||
return strtolower(trim(preg_replace("/[\s-]+/", "-", $sanitizedString), "-"));
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue