merged #1096 fixes

This commit is contained in:
gorhill 2015-03-26 15:16:48 -04:00
parent 80c42431d9
commit d7aea27f19
3 changed files with 13 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"manifest_version": 2, "manifest_version": 2,
"name": "uBlock", "name": "uBlock",
"version": "0.9.2.3", "version": "0.9.2.4",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_extShortDesc__", "description": "__MSG_extShortDesc__",

View File

@ -2,7 +2,7 @@
"manifest_version": 2, "manifest_version": 2,
"name": "uBlock", "name": "uBlock",
"version": "0.9.2.2", "version": "0.9.2.4",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_extShortDesc__", "description": "__MSG_extShortDesc__",

View File

@ -165,6 +165,11 @@ var isFirstParty = function(firstPartyDomain, hostname) {
}; };
var alwaysTruePseudoRegex = { var alwaysTruePseudoRegex = {
match: { '0': '', index: 0 },
exec: function(s) {
this.match['0'] = s;
return this.match;
},
test: function() { test: function() {
return true; return true;
} }
@ -1381,6 +1386,12 @@ FilterParser.prototype.parse = function(raw) {
//console.debug('µBlock.staticNetFilteringEngine/FilterParser.parse():', raw, '=', s); //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 // left-anchored