Mac@programming.dev to Programming@programming.dev · 3 years agoStrings do too many thingsbuttondown.emailexternal-linkmessage-square78linkfedilinkarrow-up1108
arrow-up1108external-linkStrings do too many thingsbuttondown.emailMac@programming.dev to Programming@programming.dev · 3 years agomessage-square78linkfedilink
minus-squareDerpgon@programming.devlinkfedilinkarrow-up14·3 years 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-squareim sorry i broke the code@sh.itjust.workslinkfedilinkarrow-up3·3 years agoWhat if it only contains @?
minus-squareSpacePirate@lemmy.mlBannedlinkfedilinkarrow-up7·edit-23 years 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.