From bcf1996cbdd2118a88226b24a4c78a08fe21749b Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 25 Mar 2011 01:17:49 +0100 Subject: Working on cutting down lines from bug-page-mod.js --- data/lib/urltest.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 data/lib/urltest.js (limited to 'data/lib/urltest.js') 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 -- cgit