Skip to content

Commit 5d7a5a5

Browse files
committed
Fix broken redirect-rule= priority parser
Related issue: - uBlockOrigin/uBlock-issues#1388 Regression from: - cf2c638
1 parent ff5390f commit 5d7a5a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/static-filtering-parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1169,8 +1169,8 @@ const Parser = class {
11691169
if ( asDataURI ) { token = token.slice(1); }
11701170
const match = /:-?\d+$/.exec(token);
11711171
if ( match !== null ) {
1172-
token = token.slice(0, match.index);
11731172
priority = parseInt(token.slice(match.index + 1), 10);
1173+
token = token.slice(0, match.index);
11741174
}
11751175
return { token, priority, asDataURI };
11761176
}

0 commit comments

Comments
 (0)