mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Handle negative character group
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2373
This commit is contained in:
parent
65cde3b75a
commit
4fb4ee1915
1 changed files with 1 additions and 0 deletions
|
|
@ -3027,6 +3027,7 @@ Parser.utils = Parser.prototype.utils = (( ) => {
|
|||
}
|
||||
case 2: /* T_ALTERNATION, 'Alternation' */
|
||||
case 8: /* T_CHARGROUP, 'CharacterGroup' */ {
|
||||
if ( node.flags.NegativeMatch ) { return '\x01'; }
|
||||
let firstChar = 0;
|
||||
let lastChar = 0;
|
||||
for ( let i = 0; i < node.val.length; i++ ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue