Fix small issue

This commit is contained in:
Ne_Eo
2024-10-07 00:30:03 +02:00
parent 4fd39f5306
commit f2a1e20c75
@@ -167,7 +167,7 @@ final class TranslationUtil
*/
public static function raw2Id(str:String):String
{
str = str.toLowerCase();
str = str.trim().toLowerCase();
return [for(i => s in str.split(" "))
i != 0 ? s.charAt(0).toUpperCase() + s.substr(1) : s
].join("");