commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] [Created] (VALIDATOR-415) Simplify building new CreditCard validators
Date Sun, 12 Feb 2017 15:52:42 GMT
Sebb created VALIDATOR-415:

             Summary: Simplify building new CreditCard validators
                 Key: VALIDATOR-415
             Project: Commons Validator
          Issue Type: New Feature
            Reporter: Sebb

Credit card validators currently rely on regexes.
Whilst these are flexible enough for the purpose, it is difficult to define the REs and hard
to read them.

It would be simpler if the user could provide the prefix ranges and lengths, for example:

Amex: "34", length 15
Discover: "644" -> "65", length 16

(both the above have other ranges which would need to be provided separately)

This can then be converted internally into the appropriate validation routines.

This message was sent by Atlassian JIRA

View raw message