YetAnotherConfigLib (yacl) is just that. A builder-based configuration library for Minecraft.
GNU Lesser General Public License v3.0
96
stars
37
forks
source link
Bug: Integer Field does not allow negative numbers #72
Closed
Qendolin closed 1 year ago
In this code the regex is wrong. It allows me to put a single '-' but no digits after it. It should be
"-?\\d+|-|"
https://github.com/isXander/YetAnotherConfigLib/blob/ce98a786f76ec4a0df49f35e3134fd76e4c9140d/common/src/main/java/dev/isxander/yacl3/gui/controllers/string/number/IntegerFieldController.java#L65-L68This could also be an issue in other controllers, I haven't checked. The issue is also in YACL 2.5.1