Browse Source

Merge pull request #11273 from chinpei215/fix-wrong-regex

Fix incorrect regex
Mark Story 8 years ago
parent
commit
86eefd112e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Validation/Validation.php

+ 1 - 1
src/Validation/Validation.php

@@ -172,7 +172,7 @@ class Validation
         }
         $cards = [
             'all' => [
-                'amex' => '/^3[4|7]\\d{13}$/',
+                'amex' => '/^3[47]\\d{13}$/',
                 'bankcard' => '/^56(10\\d\\d|022[1-5])\\d{10}$/',
                 'diners' => '/^(?:3(0[0-5]|[68]\\d)\\d{11})|(?:5[1-5]\\d{14})$/',
                 'disc' => '/^(?:6011|650\\d)\\d{12}$/',