Skip to content

Regex test for email rejects correct mailbox addresses, and accepts incorrect addresses. #91

@gene-hightower

Description

@gene-hightower

The syntax for mailbox addresses used by the SMTP protocol is defined by RFC-5321. (NOT RFC-5322, as is often mistakenly thought.)

The whatwg HTML spec seems to get this wrong, see whatwg/html#4562 (comment)

For test cases please see
https://github.com/json-schema-org/JSON-Schema-Test-Suite/blob/main/tests/draft2020-12/optional/format/email.json

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