Minor code review for d6ccc9857d

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/736
This commit is contained in:
Raymond Hill 2019-09-26 09:25:33 -04:00
parent d6ccc9857d
commit 16261aa6b5
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 2 deletions

View File

@ -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'
};
};