aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/urltest.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-25 01:17:49 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-25 14:21:22 +0100
commitbcf1996cbdd2118a88226b24a4c78a08fe21749b (patch)
treeb2274c77ae97dc116675145885b335e2a8377d5f /data/lib/urltest.js
parent23fb75565611af1e85455844be1d8931efe0a0a4 (diff)
downloadbugzilla-triage-bcf1996cbdd2118a88226b24a4c78a08fe21749b.tar.gz
Working on cutting down lines from bug-page-mod.js
Diffstat (limited to 'data/lib/urltest.js')
-rw-r--r--data/lib/urltest.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/lib/urltest.js b/data/lib/urltest.js
new file mode 100644
index 0000000..a0dbabf
--- /dev/null
+++ b/data/lib/urltest.js
@@ -0,0 +1,4 @@
+function onBugzillaPage(url) {
+ return /https:\/\/bugzilla(-[a-zA-Z]+)*\.mozilla\.org/.test(url)
+ || /https:\/\/landfill.*\.bugzilla\.org/.test(url);
+} \ No newline at end of file