projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updating Media dependent modules to versions compatible with core Media.
[yaffs-website]
/
vendor
/
symfony
/
validator
/
Constraints
/
CardSchemeValidator.php
diff --git
a/vendor/symfony/validator/Constraints/CardSchemeValidator.php
b/vendor/symfony/validator/Constraints/CardSchemeValidator.php
index 36a9d8ad276d7d04f549a6f1c8fdd83b97cd5767..dae3412cd7178ea184ce63388499434207e79657 100644
(file)
--- a/
vendor/symfony/validator/Constraints/CardSchemeValidator.php
+++ b/
vendor/symfony/validator/Constraints/CardSchemeValidator.php
@@
-78,9
+78,9
@@
class CardSchemeValidator extends ConstraintValidator
'/^5[1-5][0-9]{14}$/',
'/^2(22[1-9][0-9]{12}|2[3-9][0-9]{13}|[3-6][0-9]{14}|7[0-1][0-9]{13}|720[0-9]{12})$/',
),
'/^5[1-5][0-9]{14}$/',
'/^2(22[1-9][0-9]{12}|2[3-9][0-9]{13}|[3-6][0-9]{14}|7[0-1][0-9]{13}|720[0-9]{12})$/',
),
- // All Visa card numbers start with a 4
. New cards have 16 digits. Old cards have 13
.
+ // All Visa card numbers start with a 4
and have a length of 13, 16, or 19 digits
.
'VISA' => array(
'VISA' => array(
- '/^4([0-9]{12}|[0-9]{15})$/',
+ '/^4([0-9]{12}|[0-9]{15}
|[0-9]{18}
)$/',
),
);
),
);