From 931f44ae16b4f48a68878283d5c137db007f2998 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 11 Apr 2024 15:44:07 -0400 Subject: [PATCH] Improve logging in `m3u-prune` scriptlet Related feedback: https://github.com/uBlockOrigin/uAssets/issues/23042#issuecomment-2050238172 --- assets/resources/scriptlets.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index 3cf2981c6..94f2df3e8 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -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 (;;) {