1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

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,
"name": "uBlock",
"version": "0.9.2.3",
"version": "0.9.2.4",
"default_locale": "en",
"description": "__MSG_extShortDesc__",

View File

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

View File

@ -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