[mv3] Fix calculation of priority value when converting redirect filters

This commit is contained in:
Raymond Hill 2025-07-03 09:22:09 -04:00
parent b5fae23329
commit eec2045645
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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);
}
}