From e45dbbdbfb6949f0a3dd184552ac6803ef3ce004 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Thu, 16 Jan 2020 14:54:26 +0000 Subject: [PATCH] Merge pull request #2487 from overleaf/hb-fix-bib-log-parser Make bib-log-parser resilient to line break missing in error GitOrigin-RevId: cfb58d63d005423bace2467f049acf8aec379aee --- services/web/frontend/js/vendor/libs/bib-log-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/frontend/js/vendor/libs/bib-log-parser.js b/services/web/frontend/js/vendor/libs/bib-log-parser.js index f726eb6c52..dad0bd8b0c 100644 --- a/services/web/frontend/js/vendor/libs/bib-log-parser.js +++ b/services/web/frontend/js/vendor/libs/bib-log-parser.js @@ -36,7 +36,7 @@ define(function() { SINGLELINE_WARNING_REGEX = /^Warning--(.+)$/m; MULTILINE_ERROR_REGEX = /^(.*)---line (\d+) of file (.*)\n([^]+?)\nI'm skipping whatever remains of this entry$/m; BAD_CROSS_REFERENCE_REGEX = /^(A bad cross reference---entry ".+?"\nrefers to entry.+?, which doesn't exist)$/m; - MULTILINE_COMMAND_ERROR_REGEX = /^(.*)\n---line (\d+) of file (.*)\n([^]+?)\nI'm skipping whatever remains of this command$/m; + MULTILINE_COMMAND_ERROR_REGEX = /^(.*)\n?---line (\d+) of file (.*)\n([^]+?)\nI'm skipping whatever remains of this command$/m; warningParsers = [ [ MULTILINE_WARNING_REGEX, function(match) {