validator.go 147 B

1234567
  1. package util
  2. import "regexp"
  3. func IsMobile(mobile string) bool {
  4. return regexp.MustCompile("^((\\+86)|(86))?\\d{11,11}$").MatchString(mobile)
  5. }