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 806467a commit 5ab3bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/impl/regexParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 5ab3bf6

Please sign in to comment.