Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
anoncake
on April 24, 2021
|
parent
|
context
|
favorite
| on:
Some useful regular expressions for programmers
Yes, there is. HTML does not define what email addresses look like. If input [type=email] rejects valid addresses, it's harmful garbage.
eyelidlessness
on April 24, 2021
[–]
Huh? My point is that if you expect user input from a browser’s input[type=email], you have little choice but to accept that it will reject emails not matching that pattern. Harmful garbage or not, a more permissive pattern won’t mitigate that.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: