Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toLowerCase problem in Turkish operating systems #35

Open
FurkanS1821 opened this issue Nov 20, 2020 · 2 comments
Open

toLowerCase problem in Turkish operating systems #35

FurkanS1821 opened this issue Nov 20, 2020 · 2 comments

Comments

@FurkanS1821
Copy link

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.

@throwaway191
Copy link

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

@FurkanS1821
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants