From 0e00010b918b9fbbf2cc422e20ce04b862726369 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 16 Jan 2024 10:04:21 -0500 Subject: [PATCH] Fix improperly assembled `!#include` sublists Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3077 --- src/js/assets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/assets.js b/src/js/assets.js index 69c2ef3e6..351cb9d0b 100644 --- a/src/js/assets.js +++ b/src/js/assets.js @@ -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('') }; };