Improve logging in m3u-prune scriptlet

Related feedback:
https://github.com/uBlockOrigin/uAssets/issues/23042#issuecomment-2050238172
This commit is contained in:
Raymond Hill 2024-04-11 15:44:07 -04:00
parent 6e61a13e40
commit 931f44ae16
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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 (;;) {