手机号正则修改,包括16开头的手机号

This commit is contained in:
gazebo
2019-12-03 10:32:48 +08:00
parent 0a6136731e
commit e7199741a4

View File

@@ -96,7 +96,7 @@ var (
} }
authTypeGuesserMap = map[string]*regexp.Regexp{ authTypeGuesserMap = map[string]*regexp.Regexp{
AuthTypeEmail: regexp.MustCompile(`^[A-Za-z0-9_\-\.]+\@[A-Za-z0-9_\-]+(\.[A-Za-z]+){1,5}$`), AuthTypeEmail: regexp.MustCompile(`^[A-Za-z0-9_\-\.]+\@[A-Za-z0-9_\-]+(\.[A-Za-z]+){1,5}$`),
AuthTypeMobile: regexp.MustCompile(`^1[345789]\d{9}$`), AuthTypeMobile: regexp.MustCompile(`^1[3456789]\d{9}$`),
} }
// 永久全局的TOKEN内部使用 // 永久全局的TOKEN内部使用