functional-validators icon indicating copy to clipboard operation
functional-validators copied to clipboard

email@domaincom is a valid email address

Open seancoyne opened this issue 10 years ago • 3 comments

your example of an invalid email is actually a perfectly valid email address.

seancoyne avatar Apr 06 '15 13:04 seancoyne

I changed the example. But the V.email validator still will return the error. For this validator i use implementation of RFC 2822.

xxllexx avatar Apr 07 '15 06:04 xxllexx

Rfc 2822 specifies that the part to the right of the @ should be the Internet domain. A domain does not require a TLD. "localhost" for example should be perfectly acceptable, as should any other hostname.

seancoyne avatar Apr 07 '15 11:04 seancoyne

Ok, i will fix this. Thanks.

xxllexx avatar Apr 07 '15 12:04 xxllexx