diff --git a/lib/api.js b/lib/api.js index b5c8aed..3c25b47 100644 --- a/lib/api.js +++ b/lib/api.js @@ -88,7 +88,7 @@ module.exports = { && !lastchar.match(/\.|\d|\-/) && ( firstchar != '?' && lastchar != '?' ) && lastchar != ';' - && line.toLowerCase().indexOf('id '+ip) === -1 + && line.toLowerCase().indexOf(' id '+ip) === -1 && parseInt(ip.substring(0,ip.indexOf('.'))) < 240 //IANA-RESERVED && regexIp.test(ip)){ diff --git a/package.json b/package.json index f4339af..a7da6fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mailhops", - "version": "2.0.4", + "version": "2.0.5", "description": "A nodejs module for interacting with the MailHops API.", "main": "main.js", "scripts": {