mirror of https://github.com/gorhill/uBlock.git
Better detect invalid network filter patterns
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2566
This commit is contained in:
parent
1835e90125
commit
42a00ec742
|
@ -1275,9 +1275,9 @@ export class AstFilterParser {
|
||||||
case NODE_TYPE_NET_OPTION_NAME_WEBRTC:
|
case NODE_TYPE_NET_OPTION_NAME_WEBRTC:
|
||||||
realBad = true;
|
realBad = true;
|
||||||
break;
|
break;
|
||||||
case NODE_TYPE_NET_PATTERN:
|
case NODE_TYPE_NET_PATTERN_RAW:
|
||||||
realBad = this.hasOptions() === false &&
|
realBad = this.hasOptions() === false &&
|
||||||
this.getNodeStringLen(targetNode) === 1;
|
this.getNetPattern().length <= 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue