mirror of
https://github.com/Respect/Validation.git
synced 2024-06-27 09:40:05 +02:00
added some code to cnpj validator
This commit is contained in:
parent
13c9c7c759
commit
5e03913ca3
12
library/Respect/Validation/Rules/Cnpj.php
Normal file
12
library/Respect/Validation/Rules/Cnpj.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Respect\Validation\Rules;
|
||||
|
||||
class Cnpj extends AbstractRule
|
||||
{
|
||||
public function validate($input)
|
||||
{
|
||||
$input = preg_replace('([^0-9])', '', $input);
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue