mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 07:22:28 +02:00
fix #3450
This commit is contained in:
parent
dada3fe6bc
commit
51fc60223a
@ -107,7 +107,9 @@ var FilterHostname = function(s, hostname) {
|
||||
FilterHostname.prototype.fid = 8;
|
||||
|
||||
FilterHostname.prototype.retrieve = function(hostname, out) {
|
||||
if ( hostname.endsWith(this.hostname) ) {
|
||||
if ( hostname.endsWith(this.hostname) === false ) { return; }
|
||||
var i = hostname.length - this.hostname.length;
|
||||
if ( i === 0 || hostname.charCodeAt(i-1) === 0x2E /* '.' */ ) {
|
||||
out.add(this.s);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user