Mac to Programming@programming.dev • 1 year agoStrings do too many thingsbuttondown.emailexternal-linkmessage-square79fedilinkarrow-up1106arrow-down113
arrow-up193arrow-down1external-linkStrings do too many thingsbuttondown.emailMac to Programming@programming.dev • 1 year agomessage-square79fedilink
minus-square@derpgon@programming.devlinkfedilink14•1 year agoThe best validation for a valid email address is always sending a verification mail. I’ve rejected countless MRs that contained ad-hoc regex email validation copied from the internet. I’d allow a check for it to contain an @.
minus-square@SpacePirate@lemmy.mllinkfedilink7•edit-21 year agoIf they are also sending a validation email, it would fail, so no issue.
The best validation for a valid email address is always sending a verification mail. I’ve rejected countless MRs that contained ad-hoc regex email validation copied from the internet. I’d allow a check for it to contain an
@
.What if it only contains @?
If they are also sending a validation email, it would fail, so no issue.