diff --git a/front/lib/AdminLTE/bower_components/moment/min/moment-with-locales.js b/front/lib/AdminLTE/bower_components/moment/min/moment-with-locales.js index e2f5a3bcc..0602a55f8 100644 --- a/front/lib/AdminLTE/bower_components/moment/min/moment-with-locales.js +++ b/front/lib/AdminLTE/bower_components/moment/min/moment-with-locales.js @@ -2275,7 +2275,7 @@ function preprocessRFC2822(s) { // Remove comments and folding whitespace and replace multiple-spaces with a single space - return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, ''); + return s.replace(/\((?:(?!\().)*\)|[\n\t]/gs, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, ''); } function checkWeekday(weekdayStr, parsedInput, config) {