diff --git a/utils/utils.go b/utils/utils.go index 5e88774ede50433cbb1e2b376f92ef23a9415198..f0a27b92ac5730717bdda9fd4fe914e415e2585b 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -62,6 +62,9 @@ func ValidateEmailAddress(email string) (string, error) { cleanEmail := strings.ToLower(strings.TrimSpace(email)) cleanEmail = string_utils.RemoveAllWhiteSpaces(cleanEmail) + // Remove ZWSP ("\u200B") characters with an empty string to remove it + cleanEmail = strings.ReplaceAll(cleanEmail, "\u200B", "") + // We validate it but still return it since in some cases we don't want to break everything if the email is bad _, err := mail.ParseAddress(cleanEmail) if err != nil {