3 ms·
Nothing is finished, nothing is permanent, and nothing is perfect. In particular, one of the evaluation tests used here is wrong: it requires failure-to-match
by gojomo 16y ago
Nothing is finished, nothing is permanent, and nothing is perfect.
In particular, one of the evaluation tests used here is wrong: it requires failure-to-match on a TLD with a digit in it:
numbersInTLD@domain.c0m
In fact, IDN TLDs will have digits in them. An internet-draft is in the works to replace RFC1123's IDN-unfriendly implication that digits in TLDs are illegal:
http://tools.ietf.org/html/draft-liman-tld-names-02 http://tools.ietf.org/html/draft-liman-tld-names-02
- sigzero 16y agoIf you say "will have" and "in the works" means it isn't the standard and the current test is valid.
- gojomo 16y agoA nice try at pedantry, which I would usually respect, but in the domain of internet standards with which I familiar, you are wrong. The existing specs are in conflict, with the more recent ones (such as IDN) allowing digits. Internet authorities, including ICANN, have enabled domains with digits in TLDs; software which is far more foundational than any web-app's email validation regex has been updated. Registration of names in some of these digited-TLDs has begun; you can visit these TLDs with your browser; your users can have functioning email addresses on these TLDs. If your app rejects such email addresses because of slavish compliance with imprecise language in a 31-year-old RFC, you'd be the one violating prevailing standards, which are a function of more than just formal IETF RFCs. That the Internet-Draft I referenced may soon become an RFC is just cleaning up loose ends on a change that's already happened. This final step isn't even strictly necessary for the de facto standard to have changed by consensus among practitioners. Plenty of vibrant well-understood standards never reach RFC status, nor pass through any formal standards body. The standard is ultimately what people do, not what someone once-upon-a-time decreed.
- th 16y agoThose hard-coded top-level domains in the "improved" regex may also be also an issue: http://en.wikipedia.org/wiki/Top-level_domain#Proposed_domains http://en.wikipedia.org/wiki/Top-level_domain#Proposed_domai...