Skip to content

Regex for email validation allows invalid emails #410

Closed

Description

@cwisdo

In testing, I've found that:

validators.email("stephen @example.com") == True
validators.email("step;hen@example.com") == True

Activity

  1. nandgator commented on Nov 29, 2024

    @nandgator
    Collaborator

    @cwisdo it seems, spaces and ; a valid characters for an email's username part.

    see: https://stackoverflow.com/questions/2049502/what-characters-are-allowed-in-an-email-address

    There's a bug though. Only email address that start with s are allowed to have space.

  2. nandgator commented on Mar 29, 2025

    @nandgator
    Collaborator

    Closed in #411

  3. linked a pull request that will close this issueFix email regex issue 140 #411on Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions