mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
Fix validation of phone numbers like 02-1688-XXXX
This commit is contained in:
parent
c86015c282
commit
6f3bb53ce3
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ class Korea
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (preg_match('/^02[2-9][0-9]{6,7}$/', $num))
|
if (preg_match('/^02(?:[2-9][0-9]{6,7}|1[0-9]{7})$/', $num))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue