From db198b09048fbc82b839e3d629cd2f9021858b0f Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 25 Jun 2020 17:13:42 -0400 Subject: [PATCH] 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. --- src/js/static-filtering-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/static-filtering-parser.js b/src/js/static-filtering-parser.js index c25b50eb9..0c4c7027d 100644 --- a/src/js/static-filtering-parser.js +++ b/src/js/static-filtering-parser.js @@ -483,7 +483,7 @@ const Parser = class { this.skipUntilNot( this.patternSpan.i, lastPatternSlice, - BITHostname | BITAsterisk + BITHostname ) === lastPatternSlice ) { this.patternRightAnchorSpan.i = lastPatternSlice;