From f242c6f1012788a5630c430349cd879c02b1cbaf Mon Sep 17 00:00:00 2001 From: Andrew Van Tassel Date: Sun, 8 Jan 2017 11:58:00 -0700 Subject: [PATCH] Added a space to the id check --- lib/api.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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": {