Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The latest version of the apache-validator 1.5.1 has this regex for the Discover validator:
/** Discover Card regular expressions */ private static final RegexValidator DISCOVER_REGEX = new RegexValidator(new String[] {"^(6011\\d{12})$", "^(64[4-9]\\d{13})$", "^(65\\d{14})$"});
It does not accept the Discover cards that start with 6011 and 17 digits long. Would be nice to support it.
Suggested regex:
^(6011\\d{12})$", "^(6011\\d{13})$", "^(64[4-9]\\d{13})$", "^(65\\d{14})$"
Example of the valid card:
60115564485789458