Update parser

This commit is contained in:
Shane Kilkelly
2016-03-11 13:53:39 +00:00
parent 5b9fa6d7d6
commit c4d49f6cf9

View File

@@ -55,10 +55,10 @@ define(function() {
var fullMatch, message;
fullMatch = match[0], message = match[1];
return {
file: null,
file: '',
level: "warning",
message: message,
line: null,
line: '',
raw: fullMatch
};
}
@@ -82,10 +82,10 @@ define(function() {
var fullMatch, message;
fullMatch = match[0], message = match[1];
return {
file: null,
file: '',
level: "error",
message: message,
line: null,
line: '',
raw: fullMatch
};
}
@@ -147,10 +147,10 @@ define(function() {
if (match) {
fullLine = match[0], lineNumber = match[1], messageType = match[2], message = match[3];
newEntry = {
file: null,
file: '',
level: MESSAGE_LEVELS[messageType] || "INFO",
message: message,
line: null,
line: '',
raw: fullLine
};
lineMatch = newEntry.message.match(/^BibTeX subsystem: \/.+\/(\w+\.\w+)_.+, line (\d+), (.+)$/);