Joe Lanman on Nostr: what regex (or other check) do you use to check an inputted email address? I also ...
what regex (or other check) do you use to check an inputted email address? I also have a verification step (send email with a code) so it doesn't need to be bulletproof. What's the worst that can happen if I just check .*@.* ?
#webdev
Published at
2024-07-10 09:20:34Event JSON
{
"id": "050e4d004fec74646554dac522ca79146f5b4bf495bb6bb1be74e8624a959fc7",
"pubkey": "2075030a4cdec9b9a79552f45c96670658c1f7be5b3fea2ce02afcb7f55b3e9b",
"created_at": 1720603234,
"kind": 1,
"tags": [
[
"t",
"webdev"
],
[
"proxy",
"https://hachyderm.io/users/joelanman/statuses/112761453574540756",
"activitypub"
]
],
"content": "what regex (or other check) do you use to check an inputted email address? I also have a verification step (send email with a code) so it doesn't need to be bulletproof. What's the worst that can happen if I just check .*@.* ?\n#webdev",
"sig": "954a8da5d628c2cc90ac1ec04270253bc6e5432082152ef2709016fac0a7e14ad1d22e71f02ce36976c8372c5a72edb8c097f9747af3542bd2143f0db82297e3"
}