Lumberjack

Lumberjack

1M Downloads

toLowerCase problem in Turkish operating systems

FurkanS1821 opened this issue · 2 comments

commented

String name = toolMaterial.name().toLowerCase().replaceAll("tools?|materials?|(battle)?(sword|axe|hoe|pick(axe)?|shovel|hammer)", "").replaceAll("[_|:]+", " ").trim();

This blob of code causes exception in Turkish OSs because it will lower I to ı, causing errors like "ıron_axe not found". This can easily be fixed by using English culture.

commented

What do you mean by using "English Culture" and how to I enable it?

commented

Using toLowerCase(Locale.ENGLISH) everywhere will fix it.