Mac@programming.dev to Programming@programming.dev · 10 months agoStrings do too many thingsbuttondown.emailexternal-linkmessage-square40fedilinkarrow-up16arrow-down10
arrow-up16arrow-down1external-linkStrings do too many thingsbuttondown.emailMac@programming.dev to Programming@programming.dev · 10 months agomessage-square40fedilink
minus-squarederpgon@programming.devlinkfedilinkarrow-up0·10 months 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-up0·9 months agoWhat if it only contains @?
minus-squareSpacePirate@lemmy.mllinkfedilinkarrow-up1·edit-29 months 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.