Skip to content

Commit

Permalink
Fix incorrect regex
Browse files Browse the repository at this point in the history
  • Loading branch information
chinpei215 committed Oct 4, 2017
1 parent e1473f2 commit 8f387af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validation/Validation.php
Expand Up @@ -172,7 +172,7 @@ public static function cc($check, $type = 'fast', $deep = false, $regex = null)
}
$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}$/',
Expand Down

0 comments on commit 8f387af

Please sign in to comment.