xxllexx / functional-validators

Build your validation expression
103 stars 3 forks source link

email@domaincom is a valid email address #2

Open seancoyne opened 9 years ago

seancoyne commented 9 years ago

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

xxllexx commented 9 years ago

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

seancoyne commented 9 years ago

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.

xxllexx commented 9 years ago

Ok, i will fix this. Thanks.