in src/objects/serverside/utils.js [157:166]
static normalizeEmail (email: string) {
// RFC 2822 REGEX approximation
const EMAIL_RE = /^[\w!#\$%&'\*\+\/\=\?\^`\{\|\}~\-]+(:?\.[\w!#\$%&'\*\+\/\=\?\^`\{\|\}~\-]+)*@(?:[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?$/i;
if (!EMAIL_RE.test(email)) {
throw new Error("Invalid email format for the passed email:'" + email + "'.Please check the passed email format.");
}
return email;
}