fix: description when using ふが chars

This commit is contained in:
Nuno Maduro
2023-03-21 13:43:01 +00:00
parent 26bb0b6eec
commit 48ae4bfc18
2 changed files with 21 additions and 1 deletions

View File

@ -61,7 +61,7 @@ final class Str
{
$code = self::PREFIX.str_replace(' ', '_', $code);
return (string) preg_replace('/[^A-Z_a-z0-9]/', '_', $code);
return (string) preg_replace('/[^\p{L}_0-9]/', '_', $code);
}
/**