Skip to content

Commit 0e00010

Browse files
committed
Fix improperly assembled !#include sublists
Related issue: uBlockOrigin/uBlock-issues#3077
1 parent 757b8be commit 0e00010

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/js/assets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ assets.fetchFilterList = async function(mainlistURL) {
428428
continue;
429429
}
430430
if ( result instanceof Object === false ) { continue; }
431-
const content = result.content;
431+
const content = result.content.trimEnd() + '\n';
432432
const slices = sfp.utils.preparser.splitter(
433433
content,
434434
vAPI.webextFlavor.env
@@ -500,7 +500,7 @@ assets.fetchFilterList = async function(mainlistURL) {
500500
resourceTime,
501501
content: allParts.length === 1
502502
? allParts[0]
503-
: allParts.join('') + '\n'
503+
: allParts.join('')
504504
};
505505
};
506506

0 commit comments

Comments
 (0)