E447
Skip to content

Email regex does not match user.name-secondname@domain.com #64

@marvin1973

Description

@marvin1973

Email regex does not match user.name-secondname@domain.com oder an other Adresse with valid "-" before @

It should be

def _is_email(self, email):
    pattern = r'[\-\.\w]+@[-\.\w]+\.\w+'
    if re.fullmatch(pattern, email):
        return True

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0