From 4acefee5ffdb517cc436e125608a5c78acf57ea2 Mon Sep 17 00:00:00 2001 From: Yurun Date: Mon, 6 May 2024 18:21:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8B=E6=9C=BA=E5=8F=B7?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Validate/ValidatorHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validate/ValidatorHelper.php b/src/Validate/ValidatorHelper.php index 6d64d6614..8b1cb4aba 100644 --- a/src/Validate/ValidatorHelper.php +++ b/src/Validate/ValidatorHelper.php @@ -175,7 +175,7 @@ public static function tel($str): bool */ public static function mobile($str): bool { - return preg_match('/^(1(([35789][0-9])|(47)))\d{8}$/', (string) $str) > 0; + return preg_match('/^(\\+?0?86\\-?)?1[3456789]\\d{9}$/', (string) $str) > 0; } /**