From 5ab3bf64a10da929a437629cdb2f059bb83212bf Mon Sep 17 00:00:00 2001 From: Isaac Cambron Date: Wed, 4 Jan 2023 15:19:36 -0500 Subject: [PATCH] fix rfc2822 regex --- src/impl/regexParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/impl/regexParser.js b/src/impl/regexParser.js index 20c9f8145..ab095864d 100644 --- a/src/impl/regexParser.js +++ b/src/impl/regexParser.js @@ -225,7 +225,7 @@ function extractRFC2822(match) { function preprocessRFC2822(s) { // Remove comments and folding whitespace and replace multiple-spaces with a single space return s - .replace(/\([^)]*\)|[\n\t]/g, " ") + .replace(/\([^()]*\)|[\n\t]/g, " ") .replace(/(\s\s+)/g, " ") .trim(); }