html/commit.js: Show E-mail addresses again.

This was broken in 62f6463ec4
This commit is contained in:
Pieter de Bie
2008-09-22 11:35:48 +02:00
parent d88edc5d19
commit 1472487f00
+2 -3
View File
@@ -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].*)/);