aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/main.js b/lib/main.js
index 79b4933..c1d09bd 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -520,17 +520,13 @@ AttachmentFlag.prototype = {
};
var reAttachmentDiff = /attachment\.cgi\?id=(\d+)&action=diff$/i;
-var reBugIdLocation = /\/show_bug\.cgi\?id=(\d+)/;
var reviewBoardUrlBase = "http://reviews.visophyte.org/";
/**
* Whenever we find a patch with a diff, insert an additional link to asuth's
* review board magic.
*/
function attachmentDiffLinkify(doc) {
- var bugMatch = reBugIdLocation.exec(doc.location.href);
- if (!bugMatch)
- return;
- var bug_id = bugMatch[1];
+ var bug_id = getBugNumber(doc);
var table = doc.getElementById("attachment_table");
if (!table)