871
you are viewing a single comment's thread
view the rest of the comments
[-] ChaoticNeutralCzech@feddit.org 7 points 11 months ago

What kind of "light validation"? I'm guessing a .*@.* regex match.

[-] TomasEkeli@programming.dev 14 points 11 months ago* (last edited 11 months ago)

Almost correct. ^.+@.+$

Too hard to validate properly to be worth it. Even if it is technically valid that's insufficient. It must also work, and the easiest way to test that is to use it and verify that the user got what we sent.

[-] GreenKnight23@lemmy.world 5 points 11 months ago

I see you accept lemmy handles.

[-] TomasEkeli@programming.dev 10 points 11 months ago

if i can email them and the user gets it - fine by me

[-] qaz@lemmy.world 2 points 11 months ago
[-] TomasEkeli@programming.dev 4 points 11 months ago

Would pass first validation, but fail when we try to send an email.

Successfully failed.

[-] qqq@lemmy.world 7 points 11 months ago
this post was submitted on 18 Aug 2025
871 points (99.0% liked)

Programmer Humor

32678 readers
1292 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS