Fix regression in pure hostname filters with wildcard

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.
This commit is contained in:
Raymond Hill 2020-06-25 17:13:42 -04:00
parent c4d39d3763
commit db198b0904
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -483,7 +483,7 @@ const Parser = class {
this.skipUntilNot(
this.patternSpan.i,
lastPatternSlice,
BITHostname | BITAsterisk
BITHostname
) === lastPatternSlice
) {
this.patternRightAnchorSpan.i = lastPatternSlice;