aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/main.js b/lib/main.js
index 7c72599..61a566d 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -32,7 +32,8 @@ config.skipMatches = [
"https://bugzilla.redhat.com/process_bug.cgi",
"https://bugzilla.redhat.com/post_bug.cgi",
"https://bugzilla.mozilla.org/post_bug.cgi",
- "https://bugzilla.mozilla.org/process_bug.cgi"
+ "https://bugzilla.mozilla.org/process_bug.cgi",
+ "https://bugzilla.redhat.com/attachment.cgi$"
];
// ==============================================================
@@ -74,10 +75,10 @@ function isOurPage(window, matchingURLs) {
function skipThisPage(doc) {
var stemURL = "https://HOSTNAME/show_bug.cgi?id=";
var titleStr = doc.getElementsByTagName("title")[0].textContent;
- var REArr = new RegExp("[0-9]+").exec(titleStr);
+ var REArr = new RegExp("[bB]ug\\s+([0-9]+)").exec(titleStr);
var hostname = urlMod.URL(doc.location.href).host;
if (REArr) {
- var bugNo = REArr[0];
+ var bugNo = REArr[1];
console.log("bugNo = " + bugNo + ", hostname = " + hostname);
var emailsSent = doc.
querySelector("#bugzilla-body > dl:nth-of-type(1)").textContent;