mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-18 08:52:26 +02:00
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;
|
lastIndex = reInclude.lastIndex;
|
||||||
}
|
}
|
||||||
out.push(lastIndex === 0 ? content : content.slice(lastIndex).trim());
|
out.push(lastIndex === 0 ? content : content.slice(lastIndex));
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
};
|
};
|
||||||
@ -285,7 +285,7 @@ api.fetchFilterList = async function(mainlistURL) {
|
|||||||
url: mainlistURL,
|
url: mainlistURL,
|
||||||
content: allParts.length === 1
|
content: allParts.length === 1
|
||||||
? allParts[0]
|
? 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
Block a user