• bignose@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 days ago

    The spec is so complex that it’s not even possible to know which regex to use

    Yes. Almost like a regex is not the correct tool to use, and instead they should use a well-tested library function to validate email addresses.

    • notarobot@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 day ago

      Exactly! But its not obvios. So most of those shitty websites don’t even know they have a problem.

      Then there are also people ignoring it on purpose. I once read a reddit comment saying 'well of your address looks like “John wick 🐶❤️”@2001:0db8:85a3:0000:0000:8a2e:0370:7334 I don’t event want your email in my DB because oit will break something