📮 An ultratiny (1.9 KB) and fast JavaScript email checker to reduce users typing a wrong email. Written in TypeScript. Enterprise-grade.
163
stars
12
forks
source link
invalid emails like "test" return the same result "undefined" like a valid email #35
Open
itinance opened 5 months ago
Current Behavior
input: "test" output: "undefined"
input: "valid@gmail.com" output: undefined
input "test@gmai" output: undefined
input "test@gmail" output: {... test@gmail.com}
Is this behaviour intended?
Expected Behavior
input: "test" output: false
input: "valid@gmail.com" output: true
input "test@gmai" output: false
input "test@gmail" output: {... test@gmail.com}
Steps to Reproduce the Problem
const suggestion = emailSpellChecker.run({ email })
Environment