mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Fix calculation of priority value when converting redirect filters
This commit is contained in:
parent
b5fae23329
commit
eec2045645
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue