From 6f3bb53ce34843f85f46ce2116212f95c304528b Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 5 Oct 2021 16:02:43 +0900 Subject: [PATCH] Fix validation of phone numbers like 02-1688-XXXX --- common/framework/korea.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/korea.php b/common/framework/korea.php index 20f234150..a7413af64 100644 --- a/common/framework/korea.php +++ b/common/framework/korea.php @@ -76,7 +76,7 @@ class Korea { 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; }