1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

Fix broken redirect-rule= priority parser

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1388

Regression from:
- cf2c638d8e
This commit is contained in:
Raymond Hill 2020-12-07 10:49:05 -05:00
parent ff5390f3a0
commit 5d7a5a559d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -1169,8 +1169,8 @@ const Parser = class {
if ( asDataURI ) { token = token.slice(1); }
const match = /:-?\d+$/.exec(token);
if ( match !== null ) {
token = token.slice(0, match.index);
priority = parseInt(token.slice(match.index + 1), 10);
token = token.slice(0, match.index);
}
return { token, priority, asDataURI };
}