Skip to content

isEmail() returns true when � is at the end of the address #1087

@frenchyLK

Description

@frenchyLK

I've noticed some odd behavior using isEmail().

> validator.isEmail('�username@domain.com') // expected
false
> validator.isEmail('username@domain.com�') // odd
true

Is this expected behavior? Is there an option that I am missing here?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions