Index: abp2blocklist.js |
=================================================================== |
--- a/abp2blocklist.js |
+++ b/abp2blocklist.js |
@@ -17,17 +17,17 @@ |
"use strict"; |
let readline = require("readline"); |
let Filter = require("filterClasses").Filter; |
let ContentBlockerList = require("./lib/abp2blocklist.js").ContentBlockerList; |
var rl = readline.createInterface({input: process.stdin, terminal: false}); |
-var blockerList = new ContentBlockerList(); |
+var blockerList = new ContentBlockerList({merge: true, exhaustiveMerge: true}); |
rl.on("line", line => |
{ |
if (/^\s*[^\[\s]/.test(line)) |
blockerList.addFilter(Filter.fromText(Filter.normalize(line))); |
}); |
rl.on("close", () => |