Validator.js: Email validation

Created on 10 Dec 2018  路  6Comments  路  Source: validatorjs/validator.js

Validator says this email is valid, but when I trying send mail through aws.SES, there is error InvalidParameterValue: Missing local name.

But why this is valid email?

const
  validator = require("validator"),
  email = `""@example.com`;

console.log(validator.isEmail(email)); // true
help wanted 馃悰 bug 馃攳needs-investigation

Most helpful comment

The email must have at least one character before the @fdqn. I think it should be fixed.

All 6 comments

I tried to validate ""@example.com by other tools, like html email input and this (this is not an advertisement, only first online checker I found) https://email-checker.net, but ""@example.com is not valid.

I agree ""@example.com is not valid email bcuz it contains special character "".

I _think_ this is technically a valid email, but I'm not 100% sure.

The email must have at least one character before the @fdqn. I think it should be fixed.

Chrome marks this email as invalid: http://jsfiddle.net/vkw2o18h/

I am willing to help fix this bug.
Will you accept my pool request?

hi @chriso, is there any rfc or some standardization format that you recommend already or are using for the valid email ?
rfc6530 ?
rfc5322

Was this page helpful?
0 / 5 - 0 ratings

Related issues

karladler picture karladler  路  3Comments

malkhuzayyim picture malkhuzayyim  路  4Comments

woverton picture woverton  路  4Comments

zilahir picture zilahir  路  3Comments

jaxkodex picture jaxkodex  路  3Comments