2 ms·
Or correctly handles, for most of the use cases you’d want it for. If you’re building a web app, foo@gmailcom is almost certainly a mistake.
by ceejayoz 3y ago
Or correctly handles, for most of the use cases you’d want it for.
If you’re building a web app, foo@gmailcom is almost certainly a mistake.
- bazoom42 3y agoOf course, since there isn’t a top level domain called gmailcom. But a regex cant tell you that.
- ceejayoz 3y agoGmail doesn't need to support "you own an entire TLD and use its root for email" use cases, so you can at least check for a dot after the @ and catch a bunch of typos that leave frustrated users.