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

This commit is contained in:
TsMask committed 2024-04-15 17:10:58 +08:00
commit 4ee64794fa
2 files changed
+18 -1

No files matched your search

+1 -1
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