use the renamed bib-parser.

This commit is contained in:
Shane Kilkelly 2016-03-08 16:18:02 +00:00
parent 6911de1149
commit cb28fe0891
2 changed files with 10 additions and 10 deletions

View file

@ -1,8 +1,8 @@
define [
"base"
"libs/latex-log-parser"
"libs/biber-log-parser"
], (App, LogParser, BiberLogParser) ->
"libs/bib-log-parser"
], (App, LogParser, BibLogParser) ->
App.controller "PdfController", ($scope, $http, ide, $modal, synctex, event_tracking, localStorage) ->
autoCompile = true
$scope.$on "project:joined", () ->
@ -107,7 +107,7 @@ define [
$http.get "/project/#{$scope.project_id}/output/output.blg" + qs
.success (log) ->
window._s = $scope
biberLogEntries = BiberLogParser.parse(log, {})
biberLogEntries = BibLogParser.parse(log, {})
if $scope.pdf.logEntries
entries = $scope.pdf.logEntries
all = biberLogEntries.errors.concat(biberLogEntries.warnings)

View file

@ -1,15 +1,15 @@
// Generated by CoffeeScript 1.10.0
define(function() {
var BiberLogParser, LINE_SPLITTER_REGEX, MESSAGE_LEVELS;
var BibLogParser, LINE_SPLITTER_REGEX, MESSAGE_LEVELS;
LINE_SPLITTER_REGEX = /^\[(\d+)].*>\s(INFO|WARN|ERROR)\s-\s(.*)$/;
MESSAGE_LEVELS = {
"INFO": "info",
"WARN": "warning",
"ERROR": "error"
};
BiberLogParser = function(text, options) {
BibLogParser = function(text, options) {
if (typeof text !== 'string') {
throw new Error("BiberLogParser Error: text parameter must be a string");
throw new Error("BibLogParser Error: text parameter must be a string");
}
this.text = text.replace(/(\r\n)|\r/g, '\n');
this.options = options || {};
@ -55,9 +55,9 @@ define(function() {
});
return result;
};
}).call(BiberLogParser.prototype);
BiberLogParser.parse = function(text, options) {
return new BiberLogParser(text, options).parse();
}).call(BibLogParser.prototype);
BibLogParser.parse = function(text, options) {
return new BibLogParser(text, options).parse();
};
return BiberLogParser;
return BibLogParser;
});