Skip to content
This repository has been 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

Open
tilleps opened this issue May 20, 2021 · 0 comments
Open

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

tilleps opened this issue May 20, 2021 · 0 comments

Comments

@tilleps
Copy link

tilleps commented May 20, 2021

// 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant