We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9dae2c commit 36ef106Copy full SHA for 36ef106
src/main/java/org/apache/commons/validator/routines/checkdigit/Modulus97CheckDigit.java
@@ -109,7 +109,8 @@ public boolean isValid(final String code) {
109
throw new CheckDigitException(CheckDigitException.invalidCode(code, "too short"));
110
}
111
// check = code.substring(code.length() - getCheckdigitLength());
112
-// final int cd = Integer.parseInt("0"+check);
+// // without the leading "0" the following would be valid "+4"
113
+// final int cd = Integer.parseInt("0" + check);
114
// if (cd==0 || cd==1 || cd==99) {
115
// return false;
116
// }
0 commit comments