Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid emails like "test" return the same result "undefined" like a valid email #35

Open
itinance opened this issue Jun 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@itinance
Copy link

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

  • Version: 1.12
  • Platform: Mac
  • Node.js Version: 20
@itinance itinance added the bug Something isn't working label Jun 14, 2024
@itinance itinance changed the title invalid emails like "test" return the same result like a valid email Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
1 participant