mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Improve logging in m3u-prune
scriptlet
Related feedback: https://github.com/uBlockOrigin/uAssets/issues/23042#issuecomment-2050238172
This commit is contained in:
parent
6e61a13e40
commit
931f44ae16
1 changed files with 4 additions and 0 deletions
|
@ -3270,6 +3270,10 @@ function m3uPrune(
|
|||
};
|
||||
const pruner = text => {
|
||||
if ( (/^\s*#EXTM3U/.test(text)) === false ) { return text; }
|
||||
if ( m3uPattern === '' ) {
|
||||
safe.uboLog(` Content:\n${text}`);
|
||||
return text;
|
||||
}
|
||||
if ( reM3u.multiline ) {
|
||||
reM3u.lastIndex = 0;
|
||||
for (;;) {
|
||||
|
|
Loading…
Reference in a new issue