手机号正则修改,包括16开头的手机号
This commit is contained in:
@@ -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,内部使用
|
||||||
|
|||||||
Reference in New Issue
Block a user