Skip to content

Improve email validation #622

@Lesterpig

Description

@Lesterpig

The current email validation function is very simple, but does not accept every valid email address according to RFCs (https://en.wikipedia.org/wiki/Email_address#Syntax). I can submit a PR if you are OK to improve the check_email_format function and linked test.

return bool(re.match(r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)", email))

Example: ~@provider.com shall be accepted.

This issue may be linked to #603

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