From cbd0e1d1267934c033240a3b25e2e328bf32549b Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 16 Mar 2015 12:00:19 -0400 Subject: [PATCH] this fixes #1033 --- src/js/subscriber.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/subscriber.js b/src/js/subscriber.js index c1c6e61c7..64b7c9179 100644 --- a/src/js/subscriber.js +++ b/src/js/subscriber.js @@ -109,7 +109,9 @@ var onAbpLinkClicked = function(ev) { } // List already subscribed to? - var externalLists = details.externalLists.trim().split(/\s+/); + // https://github.com/gorhill/uBlock/issues/1033 + // Split on line separators, not whitespaces. + var externalLists = details.externalLists.trim().split(/\s*[\n\r]+\s*/); if ( externalLists.indexOf(location) !== -1 ) { return; }