From: Alan Knowles Date: Fri, 28 Apr 2017 02:44:23 +0000 (+0800) Subject: GitLogParser.js X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=45533926a2ec8fd73c8d6f4ba7763cdc9c34bbb7 GitLogParser.js --- diff --git a/GitLogParser.js b/GitLogParser.js index 27d8bbe9..8b4896f5 100644 --- a/GitLogParser.js +++ b/GitLogParser.js @@ -205,6 +205,21 @@ GitLogParser = { }, + match_project : function(line) { + for(var proj in this.regexes) { + for(var r in this.regexes[proj]) { + if (line.match(this.regexes[proj][r])) { + //print("Match " + proj + " on " + r + ret.line + ) + return proj; + + } + } + + } + return "Unknown"; + }, + + '/usr/bin/perl' : function(ret) { if (ret.title.match(/^PAC/)) { ret.project = 'Unknown';