From eec204564590013e6cd0f50128b35843a141cf40 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 3 Jul 2025 09:22:09 -0400 Subject: [PATCH] [mv3] Fix calculation of priority value when converting redirect filters --- src/js/static-net-filtering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 7fd749045..9f68e9993 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -4709,7 +4709,7 @@ StaticNetFilteringEngine.prototype.dnrFromCompiled = function(op, context, ...ar if ( token !== '' ) { const match = /:(\d+)$/.exec(token); if ( match !== null ) { - rule.priority += Math.min(rule.priority + parseInt(match[1], 10), 9); + rule.priority += Math.min(parseInt(match[1], 10), 8); token = token.slice(0, match.index); } }