fix integer validation issue
This commit is contained in:
parent
61e2fa1d39
commit
f9a06ae2b8
|
@ -123,6 +123,8 @@ public class Utilities {
|
|||
if (isBlank(string)) {
|
||||
return false;
|
||||
}
|
||||
if (string.startsWith("-"))
|
||||
string = string.substring(1);
|
||||
for (char next : string.toCharArray()) {
|
||||
if (!Character.isDigit(next)) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue