mirror of https://github.com/gorhill/uBlock.git
Minor code review for d6ccc9857d
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/736
This commit is contained in:
parent
d6ccc9857d
commit
16261aa6b5
|
@ -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'
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue