Skip to content

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

Open
@itinance

Description

@itinance

Current Behavior

input: "test"
output: "undefined"

input: "[email protected]"
output: undefined

input "test@gmai"
output: undefined

input "test@gmail"
output: {... [email protected]}

Is this behaviour intended?

Expected Behavior

input: "test"
output: false

input: "[email protected]"
output: true

input "test@gmai"
output: false

input "test@gmail"
output: {... [email protected]}

Steps to Reproduce the Problem

const suggestion = emailSpellChecker.run({
email
})

Environment

  • Version: 1.12
  • Platform: Mac
  • Node.js Version: 20

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions