Hi! First of all, thanks for this great component :)
I've hit an issue where the maxLength property for AMEX (15 chars + 2 spaces = 17) and DINERS (14 chars + 2 spaces = 16) doesn't count the spaces in contrast to the maxLength for MASTER and VISA (16 chars + 3 spaces = 19)
Hi! First of all, thanks for this great component :)
I've hit an issue where the
maxLength
property forAMEX
(15 chars + 2 spaces = 17) andDINERS
(14 chars + 2 spaces = 16) doesn't count thespaces
in contrast to themaxLength
forMASTER
andVISA
(16 chars + 3 spaces = 19)https://github.com/amarofashion/react-credit-cards/blob/fea2e002aa63b707cf697b4ae236738c237ad329/src/index.js#L185
Is this the expected behavior? Thanks 😁