From 1e3fae2c8e42b1809ddd5cf17ddf6cd89dcd00c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Thu, 7 Jul 2022 15:13:39 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E5=A4=8D=E7=94=B5=E4=BF=A1?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E7=A0=81=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gopreg.go | 2 +- version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gopreg.go b/gopreg.go index 32d4435..b16b79f 100644 --- a/gopreg.go +++ b/gopreg.go @@ -57,7 +57,7 @@ func ChinaUnicomNumber(number string) bool { // https://www.qqzeng.com/tongji.html // 电信:133 149 153 173 174 177 180 181 189 190 191 193 199 func ChinaTelecomNumber(number string) bool { - regular := "^[1](([3][3])|([4][9])|([5][3)|([7][3-4,7])||([8][0-1,9])|([9][0-1,3,9]))[0-9]{8}$" + regular := "^[1](([3][3])|([4][9])|([5][3])|([7][3-4,7])||([8][0-1,9])|([9][0-1,3,9]))[0-9]{8}$" reg := regexp.MustCompile(regular) return reg.MatchString(number) } diff --git a/version.go b/version.go index 5ba0254..937daf6 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package goverify -const Version = "1.0.1" +const Version = "1.0.2"