Browse Source

fix user email validation

abhishek9686 6 months ago
parent
commit
3dedb20f94
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pro/email/email.go

+ 1 - 1
pro/email/email.go

@@ -55,6 +55,6 @@ func GetClient() (e EmailSender) {
 }
 }
 
 
 func IsValid(email string) bool {
 func IsValid(email string) bool {
-	emailRegex := regexp.MustCompile(`^[a-z0-9._%+\-]+@[a-z0-9.\-]+\.[a-z]{2,4}$`)
+	emailRegex := regexp.MustCompile(`^[a-z0-9._%+\-]+@[a-z0-9.\-]+\.[a-z]{2,}$`)
 	return emailRegex.MatchString(email)
 	return emailRegex.MatchString(email)
 }
 }