We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 806467a commit 5ab3bf6Copy full SHA for 5ab3bf6
src/impl/regexParser.js
@@ -225,7 +225,7 @@ function extractRFC2822(match) {
225
function preprocessRFC2822(s) {
226
// Remove comments and folding whitespace and replace multiple-spaces with a single space
227
return s
228
- .replace(/\([^)]*\)|[\n\t]/g, " ")
+ .replace(/\([^()]*\)|[\n\t]/g, " ")
229
.replace(/(\s\s+)/g, " ")
230
.trim();
231
}
0 commit comments