1
0
mirror of https://github.com/MailHops/mailhops-node.git synced 2025-05-15 11:20:12 -07:00

Added IP colon fix

This commit is contained in:
Andrew Van Tassel 2017-07-25 10:34:48 -06:00
parent 38a0863a1a
commit c2811b7afa
3 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file.
## 2.1.1 - 2017-07-25
### Fixed
- IP test when IP regex finds a semantic version with a trailing colon
## 2.1.0 - 2017-02-21
### Fixed

View File

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

View File

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