Web.Components: utils: email: deleted unused validation

This commit is contained in:
Daniil Senkiv 2019-10-16 13:53:44 +03:00
parent b88de4c886
commit 2eca3ef620

View File

@ -135,17 +135,6 @@ const checkErrors = (parsedAddress, options) => {
});
}
if (!options.allowSpaces &&
(/\s+/.test(parsedAddress.domain) ||
parsedAddress.domain !== parsedAddress.parts.domain.tokens)
) {
errors.push({
message: "Incorrect, domain contains spaces",
type: parseErrorTypes.IncorrectEmail,
errorItem: parsedAddress
});
}
if (parsedAddress.local.length > 64) {
errors.push({
message: "The maximum total length of a user name or other local-part is 64 characters. See RFC2821",