2 ms·
> I have added this capability to every commercial web property I've worked on. I tried doing email validation the modern way: if '@' in emailfield then return
by lucb1e 6y ago
> I have added this capability to every commercial web property I've worked on.
I tried doing email validation the modern way: if '@' in emailfield then return True else 'email address needs an @'. The user gets a confirmation email anyway, and the sign-up process was literally name, email, tick a box that you read the privacy policy, and click continue, so they can just re-do that if they typo'd the address.
Iirc the boss decided to set requirements for a regex that I was to implement instead. Or maybe he made the regex and I tweaked it saying "this won't match .amsterdam domains", not sure anymore.