1
0
mirror of https://github.com/MailHops/mailhops-node.git synced 2025-05-15 19:30:13 -07:00

Added a space to the id check

This commit is contained in:
Andrew Van Tassel 2017-01-08 11:58:00 -07:00
parent 19c5472484
commit f242c6f101
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ module.exports = {
&& !lastchar.match(/\.|\d|\-/) && !lastchar.match(/\.|\d|\-/)
&& ( firstchar != '?' && lastchar != '?' ) && ( firstchar != '?' && lastchar != '?' )
&& lastchar != ';' && lastchar != ';'
&& line.toLowerCase().indexOf('id '+ip) === -1 && line.toLowerCase().indexOf(' id '+ip) === -1
&& parseInt(ip.substring(0,ip.indexOf('.'))) < 240 //IANA-RESERVED && parseInt(ip.substring(0,ip.indexOf('.'))) < 240 //IANA-RESERVED
&& regexIp.test(ip)){ && regexIp.test(ip)){

View File

@ -1,6 +1,6 @@
{ {
"name": "mailhops", "name": "mailhops",
"version": "2.0.4", "version": "2.0.5",
"description": "A nodejs module for interacting with the MailHops API.", "description": "A nodejs module for interacting with the MailHops API.",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {