YetAnotherConfigLib

YetAnotherConfigLib

13M Downloads

Bug: Integer Field does not allow negative numbers

Qendolin opened this issue ยท 0 comments

commented

In this code the regex is wrong. It allows me to put a single '-' but no digits after it. It should be "-?\\d+|-|"

@Override
public boolean isInputValid(String input) {
return input.matches("\\d+|-|");
}

This could also be an issue in other controllers, I haven't checked.
The issue is also in YACL 2.5.1