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:
parent
19c5472484
commit
f242c6f101
@ -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)){
|
||||||
|
|
||||||
|
@ -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": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user