slawekjaranowski commented on code in PR #302:
URL: https://github.com/apache/commons-validator/pull/302#discussion_r1898099855
##########
src/main/java/org/apache/commons/validator/routines/IBANValidator.java:
##########
@@ -101,10 +101,6 @@ public Validator(final String countryCode, final int
ibanLength, final String re
if (ibanLength > MAX_LEN || ibanLength < MIN_LEN) {
throw new IllegalArgumentException("Invalid length parameter,
must be in range " + MIN_LEN + " to " + MAX_LEN + " inclusive: " + ibanLength);
}
- final String regex = countryCode + regexWithoutCC;
- if (!regex.startsWith(countryCode)) {
Review Comment:
This is always false
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]