mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-10-31 07:50:09 +01:00
Fixed empty config Strings being overridden by defaults
This commit is contained in:
parent
b1bcb962cb
commit
f9c55850de
@ -93,7 +93,7 @@ public interface ConfigValueParser<T> {
|
||||
|
||||
boolean surroundedByQuotes = value.startsWith("'") || value.endsWith("'");
|
||||
boolean surroundedByDoubleQuotes = value.startsWith("\"") || value.endsWith("\"");
|
||||
boolean containsSpace = value.contains(" ");
|
||||
boolean containsSpace = value.isEmpty() || value.contains(" ");
|
||||
boolean startsWithSpecialSymbol = value.startsWith("-") || value.startsWith("#") || value.startsWith("&");
|
||||
|
||||
if (surroundedByDoubleQuotes || containsSpace || startsWithSpecialSymbol) {
|
||||
|
Loading…
Reference in New Issue
Block a user