1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00
Raymond Hill 2018-11-26 12:02:32 -05:00
parent e56bb5d7ac
commit 75d9cf3055
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -762,9 +762,9 @@ FilterContainer.prototype.fromCompiledContent = function(reader, options) {
if ( bucket === undefined ) {
db.simple.add(args[1]);
} else if ( Array.isArray(bucket) ) {
bucket.push(args[1]);
bucket.push(db.prefix + args[1]);
} else {
db.complex.set(args[1], [ bucket, args[1] ]);
db.complex.set(args[1], [ bucket, db.prefix + args[1] ]);
}
break;
@ -775,7 +775,7 @@ FilterContainer.prototype.fromCompiledContent = function(reader, options) {
bucket = db.complex.get(args[1]);
if ( bucket === undefined ) {
if ( db.simple.has(args[1]) ) {
db.complex.set(args[1], [ args[1], args[2] ]);
db.complex.set(args[1], [ db.prefix + args[1], args[2] ]);
} else {
db.complex.set(args[1], args[2]);
db.simple.add(args[1]);