mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-18 02:51:19 +01:00
Fix potential case issues on item alias part matching
This commit is contained in:
parent
b93361cd07
commit
ce7cade0a5
@ -78,7 +78,7 @@ public class ItemAliasModule implements Listener {
|
||||
length = (short) entry.getValue().length();
|
||||
code = entry.getKey();
|
||||
} else if (typeParts.length > 1) {
|
||||
String[] nameParts = entry.getValue().split("[ _]");
|
||||
String[] nameParts = entry.getValue().toUpperCase(Locale.ROOT).split("[ _]");
|
||||
if (typeParts.length == nameParts.length) {
|
||||
boolean matched = true;
|
||||
for (int i = 0; i < nameParts.length; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user