mirror of https://github.com/gorhill/uBlock.git
Fix improperly assembled `!#include` sublists
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3077
This commit is contained in:
parent
757b8be9cd
commit
0e00010b91
|
@ -428,7 +428,7 @@ assets.fetchFilterList = async function(mainlistURL) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ( result instanceof Object === false ) { continue; }
|
if ( result instanceof Object === false ) { continue; }
|
||||||
const content = result.content;
|
const content = result.content.trimEnd() + '\n';
|
||||||
const slices = sfp.utils.preparser.splitter(
|
const slices = sfp.utils.preparser.splitter(
|
||||||
content,
|
content,
|
||||||
vAPI.webextFlavor.env
|
vAPI.webextFlavor.env
|
||||||
|
@ -500,7 +500,7 @@ assets.fetchFilterList = async function(mainlistURL) {
|
||||||
resourceTime,
|
resourceTime,
|
||||||
content: allParts.length === 1
|
content: allParts.length === 1
|
||||||
? allParts[0]
|
? allParts[0]
|
||||||
: allParts.join('') + '\n'
|
: allParts.join('')
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue