Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Whitespace (tabs) fixes
  • Loading branch information
nilbus committed Apr 5, 2012
commit 4c2d6163b9cf09cbcce9086db4f166919310b3ab
18 changes: 9 additions & 9 deletions html/views/history/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ var Commit = function(obj) {
}
this.header = this.raw.substring(0, messageStart);

if (typeof this.header !== 'undefined') {
var match = this.header.match(/\nauthor (.*) <(.*@.*|.*)> ([0-9].*)/);
if (typeof match !== 'undefined' && typeof match[2] !== 'undefined') {
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];
if (typeof this.header !== 'undefined') {
var match = this.header.match(/\nauthor (.*) <(.*@.*|.*)> ([0-9].*)/);
if (typeof match !== 'undefined' && typeof match[2] !== 'undefined') {
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];

if (typeof match[3] !== 'undefined')
this.author_date = new Date(parseInt(match[3]) * 1000);
this.author_date = new Date(parseInt(match[3]) * 1000);

match = this.header.match(/\ncommitter (.*) <(.*@.*|.*)> ([0-9].*)/);
match = this.header.match(/\ncommitter (.*) <(.*@.*|.*)> ([0-9].*)/);
if (typeof match[2] !== 'undefined')
this.committer_email = match[2];
if (typeof match[3] !== 'undefined')
this.committer_date = new Date(parseInt(match[3]) * 1000);
}
}
}
}
}

this.reloadRefs = function() {
Expand Down