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
1 changed files with 7 additions and 1 deletions

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' */ {