News for hackers. Stuff that matters.
Re:The Correct Way to Validate Email Addresses by toomanybeersies on Thursday September 08, 2016 @01:19AM (#12450464)
It's because a lot of regex validations (including earlier versions of Angular) have a regex that ends in something like

\.[A-Za-z]{2,4}$ (this is the end of the regex in Angular 1.15, it also doesn't support brackets or quotes in the local part, poor showing from Google)

At the time when they were written, gTLDs didn't exist, so the longest a tld could be was 4 characters (.info, .mobi). It's pretty piss poor futureproofing to be honest.

Re:The Correct Way to Validate Email Addresses by vidarh on Thursday September 08, 2016 @01:29AM (#12450499)
Angular didn't even exist when the first expansion happened, so either they were flat out ignorant, or they copied an earlier regex without verifying it (.museum was part of the initial batch of new gTLDs in 2001)