1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01:00
This commit is contained in:
gorhill 2015-03-16 12:00:19 -04:00
parent 332653284d
commit cbd0e1d126

View File

@ -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;
}