mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +02:00
this fixes #1033
This commit is contained in:
parent
332653284d
commit
cbd0e1d126
@ -109,7 +109,9 @@ var onAbpLinkClicked = function(ev) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// List already subscribed to?
|
// 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 ) {
|
if ( externalLists.indexOf(location) !== -1 ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user