Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

BUG: Leading "Thin Space" Unicode Character (U+2009) is valid email #348

@tilleps

Description

@tilleps
// EXPECTED: Control/normal email
validate.single("example@email.test", { email: true });
// => undefined

// EXPECTED: Use spacebar space
validate.single(" example@email.test", { email: true });
// => [ 'is not a valid email' ]

// UNEXPECTED: Use "Thin Space" Unicode Character (U+2009)
validate.single(" example@email.test", { email: true });
// => undefined

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