|
@@ -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)
|
|
|
}
|