Merge remote-tracking branch 'origin/main' into lichang

This commit is contained in:
TsMask
2024-04-15 17:10:58 +08:00
2 changed files with 18 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ func ValidMobile(mobile string) bool {
if mobile == "" {
return false
}
pattern := `^1[3|4|5|6|7|8|9][0-9]\d{8}$`
pattern := `^.{3,}$` // `^1[3|4|5|6|7|8|9][0-9]\d{8}$`
match, err := regexp.MatchString(pattern, mobile)
if err != nil {
return false