This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-validator.git
The following commit(s) were added to refs/heads/master by this push:
new 695b5b8 Forgot to enable the new regex
695b5b8 is described below
commit 695b5b8a77b8951e658e67217d00460baee9105c
Author: Sebb <[email protected]>
AuthorDate: Tue Jul 28 12:40:44 2020 +0100
Forgot to enable the new regex
---
.../org/apache/commons/validator/routines/CreditCardValidator.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java
b/src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java
index f8fed98..801645d 100644
---
a/src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java
+++
b/src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java
@@ -236,8 +236,7 @@ public class CreditCardValidator implements Serializable {
* 6011xx (16) <br>
* 644xxx - 65xxxx (16) <br>
*/
- private static final RegexValidator DISCOVER_REGEX = new
RegexValidator(new String[] {"^(6011\\d{12})$", "^(64[4-9]\\d{13})$",
"^(65\\d{14})$"});
-// private static final RegexValidator DISCOVER_REGEX = new
RegexValidator(new String[] {"^(6011\\d{12})$", "^(64[4-9]\\d{13})$",
"^(65\\d{14})$", "^(62[2-8]\\d{13})$"});
+ private static final RegexValidator DISCOVER_REGEX = new
RegexValidator(new String[] {"^(6011\\d{12})$", "^(64[4-9]\\d{13})$",
"^(65\\d{14})$", "^(62[2-8]\\d{13})$"});
/** Discover Card Validator */
public static final CodeValidator DISCOVER_VALIDATOR = new
CodeValidator(DISCOVER_REGEX, LUHN_VALIDATOR);