|
|
@@ -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;
|
|
|
});
|