1027
you are viewing a single comment's thread
view the rest of the comments
[-] sxan@midwest.social 77 points 1 day ago

There are a frightening number of systems that don't allow "-", which isn't even an edge case. A lot of people - mostly women - hyphenate their last names on marriage, rather than throw their old name away. My wife did. She legally changed her name when she came of age, and when we met and married years later she said, "I paid for money for my name; I'm not letting it go." (Note: I wasn't pressuring her to take my name.) So she hyphenated it, and has come to regret the decision. She says she should have switched, or not, but the hyphen causes problems everywhere. It's not a legal character in a lot of systems, including some government systems.

[-] Affidavit@lemm.ee 54 points 1 day ago

It boggles my mind how so many websites and platforms incorrectly say my e-mail address is 'invalid' because it has an apostrophe in it.

No. It is NOT invalid. I have been receiving e-mails for years. You just have a shitty developer.

[-] rumba@lemmy.zip 21 points 1 day ago

worst thing is, the regex to check email has been available for decades and it's fine with apostrophies

[-] sukhmel@programming.dev 1 points 7 hours ago

There are many regexes that validate email, and they usually aren't compliant with the RFC, there are some details in the very old answer on SO. So, better not validate and just send a confirmation, than restrict and lock people out, imo

[-] rumba@lemmy.zip 1 points 6 hours ago

The article you just mentioned in the comments includes both a completely reasonable and viable regex and binary and library alternatives that are in most languages.

load more comments (3 replies)
load more comments (5 replies)
load more comments (15 replies)
this post was submitted on 16 Nov 2024
1027 points (99.2% liked)

Programmer Humor

19572 readers
1031 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 1 year ago
MODERATORS