Skip to content

Commit 612e0c7

Browse files
committed
fix rfc2822 regex
1 parent 9dcec8c commit 612e0c7

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
@@ -229,7 +229,7 @@ function extractRFC2822(match) {
229229
function preprocessRFC2822(s) {
230230
// Remove comments and folding whitespace and replace multiple-spaces with a single space
231231
return s
232-
.replace(/\([^)]*\)|[\n\t]/g, " ")
232+
.replace(/\([^()]*\)|[\n\t]/g, " ")
233233
.replace(/(\s\s+)/g, " ")
234234
.trim();
235235
}

0 commit comments

Comments
 (0)