Skip to content

Regexp for email validation is to weak #14

@dpietrzyk

Description

@dpietrzyk

I play around with this library, and I found a few cases where it returns that the email is valid, but they are invalid.

The code is simple

const ev = new EmailValidation({
  allowFreemail: true,
  allowDisposable: true,
});

export const isEmailValid = (email: string): boolean => {
  const result = ev.check(email);
  return result.valid;
};

Those are what I identified for now:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions