Skip to content

Commit

Permalink
Better detect invalid network filter patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Mar 30, 2023
1 parent 1835e90 commit 42a00ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/static-filtering-parser.js
Expand Up @@ -1275,9 +1275,9 @@ export class AstFilterParser {
case NODE_TYPE_NET_OPTION_NAME_WEBRTC:
realBad = true;
break;
case NODE_TYPE_NET_PATTERN:
case NODE_TYPE_NET_PATTERN_RAW:
realBad = this.hasOptions() === false &&
this.getNodeStringLen(targetNode) === 1;
this.getNetPattern().length <= 1;
break;
default:
break;
Expand Down

0 comments on commit 42a00ec

Please sign in to comment.