From d7791ba837971e9527f5be99b88d84bebdef579f Mon Sep 17 00:00:00 2001 From: peeped Date: Tue, 7 Apr 2015 17:48:51 +0800 Subject: [PATCH] Update validators.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit //176 中国联通 //177 中国电信 //145 中国联通 //147 中国移动 //149 中国电信 --- validation/validators.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/validators.go b/validation/validators.go index 645f4ec3..61b0414a 100644 --- a/validation/validators.go +++ b/validation/validators.go @@ -457,7 +457,7 @@ func (b Base64) GetLimitValue() interface{} { } // just for chinese mobile phone number -var mobilePattern = regexp.MustCompile("^((\\+86)|(86))?(1(([35][0-9])|(47)|[8][0-9]))\\d{8}$") +var mobilePattern = regexp.MustCompile("^((\\+86)|(86))?(1(([35][0-9])|[8][0-9]|[7][67]|[4][579]))\\d{8}$") type Mobile struct { Match