Skip to content

Commit

Permalink
fix rfc2822 regex
Browse files Browse the repository at this point in the history
  • Loading branch information
icambron committed Jan 4, 2023
1 parent 9dcec8c commit 612e0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/impl/regexParser.js
Expand Up @@ -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();
}
Expand Down

0 comments on commit 612e0c7

Please sign in to comment.