Skip to content

Email validation not working with 'require_tld' = true #1652

Open
@stevehobbsdev

Description

@stevehobbsdev

Describe the bug
I am using isEmail to validate email addresses with require_tld set as the default of true, and noticed an anomaly:

example@example correctly fails validation.

example.example@example passes validation.

Given that require_tld is true I would have expected the second example to fail, or am I mistaken?

Additional context
Validator.js version: 13.6.0
Node.js version: 12.9.1
OS platform: [windows, linux, macOS, etc] macOS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions