From 8f2f18f9b6ff8e5548a2202066de56a76ea53cd8 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Thu, 23 Sep 2021 14:38:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=A7=E6=9C=BA=E5=8A=A0=E5=8C=BA=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/validate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/validate.js b/src/utils/validate.js index 3d1e2c4..78d9034 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -12,7 +12,7 @@ export function isEmail(s) { * @param {*} s */ export function isPhone(s) { - return /^([0-9]{3,4}-)?[0-9]{7,8}$/.test(s) + return /^([0-9]{3,4}-)[0-9]{7,8}$/.test(s) } /**