From 1472487f00704c821a7ba7680a66309f2ce3dade Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Mon, 22 Sep 2008 11:35:48 +0200 Subject: [PATCH] html/commit.js: Show E-mail addresses again. This was broken in 62f6463ec4d76c9f93d83443297a515b782aab0d --- html/commit.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/html/commit.js b/html/commit.js index 6c79404..155d83c 100644 --- a/html/commit.js +++ b/html/commit.js @@ -20,10 +20,9 @@ var Commit = Class.create({ var match = this.header.match(/\nauthor (.*) <(.*@.*)> ([0-9].*)/); this.author_name = match[1]; - if (this.author_email =~ (/@[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}\z/)) - this.author_email = null; - else + 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].*)/);