Skip to content

Commit

Permalink
Fix regression in pure hostname filters with wildcard
Browse files Browse the repository at this point in the history
The regression broke filters of the form:

    ||trk*.vidible.tv^

The new parser will eventually interpret differently
wildcard characters when they are used in a manner
meant to represent only hostname-valid characters,
but this will come in a future version -- for now
the default meaning must be preserved until the
static network filtering engine is modified to
enforce the new interpretation.
  • Loading branch information
gorhill committed Jun 25, 2020
1 parent c4d39d3 commit db198b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/static-filtering-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ const Parser = class {
this.skipUntilNot(
this.patternSpan.i,
lastPatternSlice,
BITHostname | BITAsterisk
BITHostname
) === lastPatternSlice
) {
this.patternRightAnchorSpan.i = lastPatternSlice;
Expand Down

0 comments on commit db198b0

Please sign in to comment.