From eea8b803acfce7284951328d351767d7e92fb52f Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 15 Apr 2024 17:09:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=AD=A3?= =?UTF-8?q?=E5=88=99=E5=88=A4=E6=96=AD=E9=99=90=E5=88=B63=E4=BD=8D?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/framework/utils/regular/regular.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/utils/regular/regular.go b/src/framework/utils/regular/regular.go index 9feebc38..3eeb31c6 100644 --- a/src/framework/utils/regular/regular.go +++ b/src/framework/utils/regular/regular.go @@ -48,7 +48,7 @@ func ValidMobile(mobile string) bool { if mobile == "" { return false } - pattern := `^1[3|4|5|6|7|8|9][0-9]\d{8}$` + pattern := `^.{3,}$` // `^1[3|4|5|6|7|8|9][0-9]\d{8}$` match, err := regexp.MatchString(pattern, mobile) if err != nil { return false