Merge pull request #51 from zardam/long_numbers
Augmentation de la taille des numéros acceptés
This commit is contained in:
commit
b5858ab79b
|
@ -9,7 +9,7 @@
|
||||||
public static function parsePhone($number)
|
public static function parsePhone($number)
|
||||||
{
|
{
|
||||||
$number = preg_replace('#[^-0-9+]#', '', $number);
|
$number = preg_replace('#[^-0-9+]#', '', $number);
|
||||||
if (preg_match('#^(0|\+[1-9]{1,3}|\+1\-[0-9]{3})[1-9][0-9]{8}$#', $number))
|
if (preg_match('#^(0|\+[1-9]{1,3}|\+1\-[0-9]{3})[1-9][0-9]{8,10}$#', $number))
|
||||||
{
|
{
|
||||||
return $number;
|
return $number;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue