mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Augmentation taille des numéros acceptés (par ex Allemagne : +49 1CC CCC CC CCC)
This commit is contained in:
parent
1df1666846
commit
636f94d9c8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue