Skip to content

Commit

Permalink
Validate_IR, tiny bug in creditCard method fixed.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/Validate/trunk@309412 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
hemmat committed Mar 18, 2011
1 parent 1a59ac1 commit ffbd4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Validate/IR.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function numeric($check)
*/
function creditCard($check)
{
$pattern = '/[0-9]{4}-?[0-9]{4}-?[0-9]{4}-?[0-9]{4}$/';
$pattern = '/^[0-9]{4}-?[0-9]{4}-?[0-9]{4}-?[0-9]{4}$/';
return preg_match($pattern, $check);
}

Expand Down

0 comments on commit ffbd4eb

Please sign in to comment.