why 't@i' return true
Closed this issue · 3 comments
a4712020502 commented
var Isemail = require('isemail');
var log = console.log.bind(console, 'result');
var flag = Isemail.validate('t@i',{checkDNS: true},log);
##result true
skeggse commented
Are you using the most recent npm version, or the git master?
nicolas-goudry commented
Same problem for me through hapijs
with toto@toto
…
I checked, hapi
’s using 2.x.x
and I have 2.2.1
in my node_modules
.
skeggse commented
We've removed checkDNS
. This is by design now. For the moment, I recommend you pull in an up-to-date list of TLDs, and pass it in as the tldWhitelist
parameter. You can also set minDomainAtoms
to 2
.