From ef8317bcb0fab2adfc1772843ededb62b7302029 Mon Sep 17 00:00:00 2001 From: Johannes Gilger Date: Fri, 30 Jan 2009 09:01:26 +0100 Subject: [PATCH] Allow email-addresses without the @-sign These addresses are perfectly valid in a local scope, and GitX shouldn't fail anyway. --- html/views/history/history.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/views/history/history.js b/html/views/history/history.js index cf07780..258310c 100644 --- a/html/views/history/history.js +++ b/html/views/history/history.js @@ -27,13 +27,13 @@ var Commit = function(obj) { } this.header = this.raw.substring(0, messageStart); - var match = this.header.match(/\nauthor (.*) <(.*@.*|)> ([0-9].*)/); + var match = this.header.match(/\nauthor (.*) <(.*@.*|.*)> ([0-9].*)/); if (!(match[2].match(/@[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/))) this.author_email = match[2]; this.author_date = new Date(parseInt(match[3]) * 1000); - match = this.header.match(/\ncommitter (.*) <(.*@.*|)> ([0-9].*)/); + match = this.header.match(/\ncommitter (.*) <(.*@.*|.*)> ([0-9].*)/); this.committer_name = match[1]; this.committer_email = match[2]; this.committer_date = new Date(parseInt(match[3]) * 1000);