diff --git a/src/lib/create/from-string.js b/src/lib/create/from-string.js index 5c4d11f740..58739b9d7c 100644 --- a/src/lib/create/from-string.js +++ b/src/lib/create/from-string.js @@ -151,7 +151,7 @@ function untruncateYear(yearStr) { 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, ' ') .replace(/^\s\s*/, '') .replace(/\s\s*$/, '');