Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: abp2blocklist.js

Issue 29337800: Issue 3709 - Take care to normalise the incoming filters (Closed)
Patch Set: Created Feb. 26, 2016, 9:06 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: abp2blocklist.js
diff --git a/abp2blocklist.js b/abp2blocklist.js
index 3ef8f18746124a14b1e72a7203d1b8a99373ccfd..2317a03750f44a5869841ddf55be9cc59c71eaee 100644
--- a/abp2blocklist.js
+++ b/abp2blocklist.js
@@ -27,7 +27,7 @@ var blockerList = new ContentBlockerList();
rl.on("line", line =>
{
if (/^\s*[^\[\s]/.test(line))
- blockerList.addFilter(Filter.fromText(line));
+ blockerList.addFilter(Filter.fromText(Filter.normalize(line)));
});
rl.on("close", () =>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld