Comparing version 2.1.2 to 2.1.3
@@ -57,3 +57,10 @@ 'use strict'; | ||
for (let row of result) { | ||
if (/[^\x20-\x7E]/.test([].concat(row || []).join(''))) { | ||
if ( | ||
/[^\x20-\x7E]/.test( | ||
[] | ||
.concat(row || []) | ||
.map(line => line.trim()) | ||
.join('') | ||
) | ||
) { | ||
let err = new Error('Invalid characters in DNS response'); | ||
@@ -60,0 +67,0 @@ err.spfResult = { |
{ | ||
"name": "mailauth", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Email authentication library for Node.js", | ||
@@ -40,3 +40,3 @@ "main": "lib/mailauth.js", | ||
"mbox-reader": "1.1.5", | ||
"mocha": "9.0.3" | ||
"mocha": "9.1.0" | ||
}, | ||
@@ -43,0 +43,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
221601
4288