From 0e9f3cfb99954e4d4fbc73c190107898044614a9 Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Thu, 25 Dec 2025 15:11:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/common.js b/utils/common.js index 008a27e..ed8a46c 100644 --- a/utils/common.js +++ b/utils/common.js @@ -1101,7 +1101,7 @@ let data = { */ setReg ($str, $type = 'default') { if ($type == 'tel') { - return /^[1][3,4,5,7,8,9][0-9]{9}$/.test($str); + return /^1[3-9]\d{9}$/.test($str); } if ($type == 'idcard') { return /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test($str);