Web.Components: utils: email: deleted unused validation
This commit is contained in:
parent
b88de4c886
commit
2eca3ef620
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user