mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 07:57:45 +00:00
fix string config validation
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -76,7 +76,7 @@ public class StringConfigField extends AConfigField<String> {
|
||||
ConfigValidationFailureEvent.fieldIsNull(field, listIndex);
|
||||
return false;
|
||||
}
|
||||
if (value.length() <= maxLength) {
|
||||
if (value.length() > maxLength) {
|
||||
ConfigValidationFailureEvent.postStringSizeOutOfBounds(field, listIndex, value, maxLength);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user