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
This commit is contained in:
Simon Detheridge 2020-01-16 14:54:26 +00:00 committed by Copybot
parent 3157d0e04d
commit e45dbbdbfb

View file

@ -36,7 +36,7 @@ define(function() {
SINGLELINE_WARNING_REGEX = /^Warning--(.+)$/m; SINGLELINE_WARNING_REGEX = /^Warning--(.+)$/m;
MULTILINE_ERROR_REGEX = /^(.*)---line (\d+) of file (.*)\n([^]+?)\nI'm skipping whatever remains of this entry$/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; 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 = [ warningParsers = [
[ [
MULTILINE_WARNING_REGEX, function(match) { MULTILINE_WARNING_REGEX, function(match) {