Hacker News new | ask | show | jobs
by badc0ffee 10 days ago
Do you mean it was failing with a >3 character TLD?
1 comments

could be < 3

   .io
   .co
   .ai
> could be < 3

Or any ccTLD: .ca, .fr, .se, etc.

* https://en.wikipedia.org/wiki/Country_code_top-level_domain

But those have been around forever. The newer ones (.shop, .wiki, etc.) are >3 and it makes more sense to me they wouldn't be handled correctly.
I don't know the specifics. I can imagine someone using a regex like

^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{3}$

it worked for the emails that the web dev tried and you have to have a valid email address to file a complaint.