Skip to content
Permalink
Browse files

Fix incorrect regex

  • Loading branch information...
chinpei215 committed Oct 4, 2017
1 parent e1473f2 commit 8f387afacf2fbf2d20e6a7a7ef1cb1298d06992a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Validation/Validation.php
@@ -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}$/',

0 comments on commit 8f387af

Please sign in to comment.
You can’t perform that action at this time.