From 612e0c778d2dedb947f3e5160c46601688ea4959 Mon Sep 17 00:00:00 2001 From: Isaac Cambron Date: Wed, 4 Jan 2023 15:30:31 -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 0b0297b1f..628108a82 100644 --- a/src/impl/regexParser.js +++ b/src/impl/regexParser.js @@ -229,7 +229,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(); }