Skip to content

Commit 5ab3bf6

Browse files
committed
fix rfc2822 regex
1 parent 806467a commit 5ab3bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/impl/regexParser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ function extractRFC2822(match) {
225225
function preprocessRFC2822(s) {
226226
// Remove comments and folding whitespace and replace multiple-spaces with a single space
227227
return s
228-
.replace(/\([^)]*\)|[\n\t]/g, " ")
228+
.replace(/\([^()]*\)|[\n\t]/g, " ")
229229
.replace(/(\s\s+)/g, " ")
230230
.trim();
231231
}

0 commit comments

Comments
 (0)