diff --git a/html/commit.js b/html/commit.js
index e9a0cba..d333812 100644
--- a/html/commit.js
+++ b/html/commit.js
@@ -19,7 +19,10 @@ var Commit = Class.create({
var match = this.header.match(/\nauthor (.*) <(.*@.*)> ([0-9].*)/);
this.author_name = match[1];
- this.author_email = match[2];
+ 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
+ this.author_email = match[2];
this.author_date = new Date(parseInt(match[3]) * 1000);
match = this.header.match(/\ncommitter (.*) <(.*@.*)> ([0-9].*)/);
@@ -48,7 +51,10 @@ var loadCommit = function() {
commit = new Commit(CommitObject);
$("commitID").innerHTML = commit.sha;
- $("authorID").innerHTML = commit.author_name + " <" + commit.author_email + ">";
+ if (commit.author_email)
+ $("authorID").innerHTML = commit.author_name + " <" + commit.author_email + ">";
+ else
+ $("authorID").innerHTML = commit.author_name;
$("date").innerHTML = commit.author_date;
$("subjectID").innerHTML =CommitObject.subject;