mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Fix spaces in templates
This commit is contained in:
parent
28e7f12932
commit
c9f9db722b
1 changed files with 1 additions and 1 deletions
|
|
@ -173,6 +173,6 @@ class Template extends View
|
|||
*/
|
||||
public static function fromCamelCaseToDash($input): string
|
||||
{
|
||||
return \strtolower(\preg_replace('/(?<!^)([A-Z][a-z]|(?<=[a-z])[^a-z\s]|(?<=[A-Z])[0-9_])/', '-$1', $input));
|
||||
return \str_replace([' ', '_'], '', \strtolower(\preg_replace('/(?<!^)([A-Z][a-z]|(?<=[a-z])[^a-z\s]|(?<=[A-Z])[0-9_])/', '-$1', $input)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue