logoalt Hacker News

Joker_vDtoday at 5:59 AM3 repliesview on HN

    \.{1,100}@\.{1,100}
I'd probably also have a red warning line under the input field for something really fishy and also most common typos (like "gmail.con") but other than that, I'd let it through.

Replies

JuustoKakkutoday at 6:22 AM

I've had sites correct me with an email address ending in ".fi" with "are you sure you don't mean ".fr"?

show 1 reply
JdeBPtoday at 9:42 AM

Realistically, the length of the domain part is likely ultimately constrained by how large a domain name can fit into a DNS/UDP query packet (alongside EDNS0).

jamesfinlaysontoday at 6:35 AM

Just had to update this this week - a previous dev had used 2,4 and someone came through complaining with a six character domain suffix. Apparently 24 or so is the current limit for a real domain suffix.

show 1 reply