Augmentation taille des numéros acceptés (par ex Allemagne : +49 1CC CCC CC CCC)
This commit is contained in:
parent
1df1666846
commit
636f94d9c8
|
@ -9,7 +9,7 @@
|
|||
public static function parsePhone($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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue