diff options
author | gorhill <rhill@raymondhill.net> | 2015-03-26 15:16:48 -0400 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-03-26 15:17:53 -0400 |
commit | d7aea27f1967f23cbaee16c67bd6618971e8d1af (patch) | |
tree | d8ad2c809bd2345db5bd37ac10b2cf69e9e9a430 /src/js | |
parent | 80c42431d92dfe6f53c8390d0da050b343d9b73f (diff) | |
download | uBlock-d7aea27f1967f23cbaee16c67bd6618971e8d1af.zip uBlock-d7aea27f1967f23cbaee16c67bd6618971e8d1af.tar.gz uBlock-d7aea27f1967f23cbaee16c67bd6618971e8d1af.tar.bz2 |
merged #1096 fixes
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/static-net-filtering.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index dbcce5f..29c3789 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -165,6 +165,11 @@ var isFirstParty = function(firstPartyDomain, hostname) { }; var alwaysTruePseudoRegex = { + match: { '0': '', index: 0 }, + exec: function(s) { + this.match['0'] = s; + return this.match; + }, test: function() { return true; } @@ -1381,6 +1386,12 @@ FilterParser.prototype.parse = function(raw) { //console.debug('µBlock.staticNetFilteringEngine/FilterParser.parse():', raw, '=', s); } } + + // https://github.com/gorhill/uBlock/issues/1096 + if ( s.charAt(0) === '^' ) { + this.unsupported = true; + return this; + } } // left-anchored |