1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 01:27:12 +02:00

Addendum to last commit as per feedback

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2372
This commit is contained in:
Raymond Hill 2022-11-18 11:23:20 -05:00
parent 42a7cfced3
commit 1c67869c42
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -3061,7 +3061,13 @@ Parser.utils = Parser.prototype.utils = (( ) => {
return String.fromCharCode(first+2, last+2);
}
case 64: /* T_HEXCHAR, 'HexChar' */ {
if ( node.flags.Code === '01' ) { return '\x00'; }
if (
node.flags.Code === '01' ||
node.flags.Code === '02' ||
node.flags.Code === '03'
) {
return '\x00';
}
return node.flags.Char;
}
case 128: /* T_SPECIAL, 'Special' */ {