mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02: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
@ -3270,6 +3270,10 @@ function m3uPrune(
|
|||||||
};
|
};
|
||||||
const pruner = text => {
|
const pruner = text => {
|
||||||
if ( (/^\s*#EXTM3U/.test(text)) === false ) { return text; }
|
if ( (/^\s*#EXTM3U/.test(text)) === false ) { return text; }
|
||||||
|
if ( m3uPattern === '' ) {
|
||||||
|
safe.uboLog(` Content:\n${text}`);
|
||||||
|
return text;
|
||||||
|
}
|
||||||
if ( reM3u.multiline ) {
|
if ( reM3u.multiline ) {
|
||||||
reM3u.lastIndex = 0;
|
reM3u.lastIndex = 0;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
Loading…
Reference in New Issue
Block a user