MV3 implicit Rule priority is 1, not 0

Related issue:
- https://github.com/uBlockOrigin/uBOL-issues/issues/30
This commit is contained in:
Raymond Hill 2023-03-03 16:52:28 -05:00
parent 82c73199e4
commit cd21a0bb9d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 2 deletions

View File

@ -769,7 +769,7 @@ class FilterImportant {
} }
static dnrFromCompiled(args, rule) { static dnrFromCompiled(args, rule) {
rule.priority = (rule.priority || 0) + 10; rule.priority = (rule.priority || 1) + 10;
} }
static keyFromArgs() { static keyFromArgs() {
@ -4416,7 +4416,7 @@ FilterContainer.prototype.dnrFromCompiled = function(op, context, ...args) {
} }
break; break;
case 'redirect-rule': { case 'redirect-rule': {
let priority = rule.priority || 0; let priority = rule.priority || 1;
let token = rule.__modifierValue; let token = rule.__modifierValue;
if ( token !== '' ) { if ( token !== '' ) {
const match = /:(\d+)$/.exec(token); const match = /:(\d+)$/.exec(token);