From bc309796895eb3f2a6ae6efbc2a8b3fad8971527 Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 16 Jul 2015 18:13:51 -0400 Subject: [PATCH] this fixes subscribing to filter lists having a query part in their URL --- src/js/subscriber.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/subscriber.js b/src/js/subscriber.js index b6d0651f4..529165ed9 100644 --- a/src/js/subscriber.js +++ b/src/js/subscriber.js @@ -84,7 +84,7 @@ var onAbpLinkClicked = function(ev) { } var matches = /^abp:\/*subscribe\/*\?location=([^&]+).*title=([^&]+)/.exec(href); if ( matches === null ) { - matches = /^https?:\/\/[^?]+\?location=([^&]+).*title=([^&]+)/.exec(href); + matches = /^https?:\/\/.*?[&?]location=([^&]+).*?&title=([^&]+)/.exec(href); if ( matches === null ) { return; }