fix user email validation

This commit is contained in:
abhishek9686 2025-02-27 18:42:09 +04:00
parent 2f0d289813
commit 3dedb20f94

View file

@ -55,6 +55,6 @@ func GetClient() (e EmailSender) {
}
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)
}