Skip to content

Commit

Permalink
Add 179 to valid Phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclesu committed Jan 7, 2016
1 parent 21f7677 commit 687266f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validation/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ func (b Base64) GetLimitValue() interface{} {
}

// just for chinese mobile phone number
var mobilePattern = regexp.MustCompile("^((\\+86)|(86))?(1(([35][0-9])|[8][0-9]|[7][067]|[4][579]))\\d{8}$")
var mobilePattern = regexp.MustCompile("^((\\+86)|(86))?(1(([35][0-9])|[8][0-9]|[7][0679]|[4][579]))\\d{8}$")

// Mobile check struct
type Mobile struct {
Expand Down

0 comments on commit 687266f

Please sign in to comment.