Fix improperly assembled `!#include` sublists

Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3077
This commit is contained in:
Raymond Hill 2024-01-16 10:04:21 -05:00
parent 757b8be9cd
commit 0e00010b91
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 2 deletions

View File

@ -428,7 +428,7 @@ assets.fetchFilterList = async function(mainlistURL) {
continue;
}
if ( result instanceof Object === false ) { continue; }
const content = result.content;
const content = result.content.trimEnd() + '\n';
const slices = sfp.utils.preparser.splitter(
content,
vAPI.webextFlavor.env
@ -500,7 +500,7 @@ assets.fetchFilterList = async function(mainlistURL) {
resourceTime,
content: allParts.length === 1
? allParts[0]
: allParts.join('') + '\n'
: allParts.join('')
};
};