fix: line0 should not be converted to lower case [fixes #132]

This commit is contained in:
Nikolaos Grammatikos 2023-07-30 20:15:00 +01:00
parent d121c0d9cf
commit 65586478a3
No known key found for this signature in database
1 changed files with 14 additions and 2 deletions

View File

@ -186,9 +186,21 @@ public class AccountChest {
}
String[] lines = sign.getLines();
String line0 = lines[0].toLowerCase().trim();
String line0 = lines[0];
return !line0.matches(Configuration.CONF.vaultPattern) || lines[2] == null || lines[2].length() == 0 || chest() == null;
if (!line0.matches(Configuration.CONF.vaultPattern)) {
return true;
}
if (lines[2] == null) {
return true;
}
if (lines[2].isEmpty()) {
return true;
}
return chest() == null;
}
/**