Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/Constraints/CardSchemeValidator.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
76 // October 2016 MasterCard numbers can also start with 222100 through 272099. | 76 // October 2016 MasterCard numbers can also start with 222100 through 272099. |
77 'MASTERCARD' => array( | 77 'MASTERCARD' => array( |
78 '/^5[1-5][0-9]{14}$/', | 78 '/^5[1-5][0-9]{14}$/', |
79 '/^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})$/', | 79 '/^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})$/', |
80 ), | 80 ), |
81 // All Visa card numbers start with a 4. New cards have 16 digits. Old cards have 13. | 81 // All Visa card numbers start with a 4 and have a length of 13, 16, or 19 digits. |
82 'VISA' => array( | 82 'VISA' => array( |
83 '/^4([0-9]{12}|[0-9]{15})$/', | 83 '/^4([0-9]{12}|[0-9]{15}|[0-9]{18})$/', |
84 ), | 84 ), |
85 ); | 85 ); |
86 | 86 |
87 /** | 87 /** |
88 * Validates a creditcard belongs to a specified scheme. | 88 * Validates a creditcard belongs to a specified scheme. |