fix: methods name with \

This commit is contained in:
Nuno Maduro
2022-12-04 23:49:58 +00:00
parent 34878bf432
commit c5f6923e5a
3 changed files with 20 additions and 2 deletions

View File

@ -56,7 +56,7 @@ final class Str
{
$code = str_replace(' ', '_', $code);
return (string) preg_replace('/[^A-Z_a-z0-9\\\\]/', '', $code);
return (string) preg_replace('/[^A-Z_a-z0-9]/', '_', $code);
}
/**