From 45533926a2ec8fd73c8d6f4ba7763cdc9c34bbb7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 28 Apr 2017 10:44:23 +0800 Subject: [PATCH] GitLogParser.js --- GitLogParser.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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'; -- 2.39.2