1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-23 19:03:02 +01:00

Fix previous commit regarding PSL

The library itself was fixed properly but failed to
properly transcribe the fix manually.

Related commit:
- 38855b1ff6
This commit is contained in:
Raymond Hill 2022-02-22 19:16:16 -05:00
parent f55361303e
commit 5619840066
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -403,7 +403,7 @@ const getPublicSuffixPosJS = function() {
}
// 2. If no rules match, the prevailing rule is "*".
if ( iFound === 0 ) {
if ( buf8[iCandidates + 1] !== 0x2A /* '*' */ ) { break; }
if ( buf32[iCandidates + 1] !== 0x2A /* '*' */ ) { break; }
buf8[SUFFIX_NOT_FOUND_SLOT] = 1;
iFound = iCandidates;
}