From 16261aa6b56a30e0147d67d3850a9afd3fa68dae Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 26 Sep 2019 09:25:33 -0400 Subject: [PATCH] Minor code review for d6ccc9857dd2 Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/736 --- 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 caa47da14..4df705992 100644 --- a/src/js/assets.js +++ b/src/js/assets.js @@ -264,7 +264,7 @@ api.fetchFilterList = async function(mainlistURL) { ); lastIndex = reInclude.lastIndex; } - out.push(lastIndex === 0 ? content : content.slice(lastIndex).trim()); + out.push(lastIndex === 0 ? content : content.slice(lastIndex)); } return out; }; @@ -285,7 +285,7 @@ api.fetchFilterList = async function(mainlistURL) { url: mainlistURL, content: allParts.length === 1 ? allParts[0] - : allParts.map(s => s.trim()).filter(s => s !== '').join('\n') + : allParts.map(s => s.trim()).filter(s => s !== '').join('\n') + '\n' }; };