3 ms·
I just check for /.@./, which catches obvious errors like leaving out the email, or typing something in the wrong field. Beyond that, there's no point making as
by threedaymonk 14y ago
I just check for /.@./, which catches obvious errors like leaving out the email, or typing something in the wrong field. Beyond that, there's no point making assumptions (like "all domains have a dot").
- astrodust 14y agoToday all domains have at least one dot in them. If, at some point in the future, you're allowed to have "jimmy@nike", directly at a TLD, we'll have bigger fish to fry than that.
- baudehlo 14y agoNo they don't. http://serverfault.com/questions/154991/why-do-some-tld-have-an-mx-record-on-the-zone-root-e-g-ai http://serverfault.com/questions/154991/why-do-some-tld-have...
- astrodust 14y agoEdge case city, there are perhaps a handful of people in the world without a dot in their domain, but yes, technically correct. The thing is, for every legitimate bob@ai there are millions of erroneous bob@gmail mistakes that would slip through. At the very least a warning should be presented.