Fix invalid integer detection
This commit is contained in:
parent
c58703c63f
commit
5026ff3506
|
@ -112,6 +112,9 @@ public class Utilities {
|
|||
return false;
|
||||
}
|
||||
String value = string.startsWith("-") ? string.substring(1) : string;
|
||||
if (Utilities.noString(value)) {
|
||||
return false;
|
||||
}
|
||||
for (char next : value.toCharArray()) {
|
||||
if (!Character.isDigit(next)) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue