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

Unified Diff: lib/iniParser.js

Issue 30013625: Issue 7094 - Link filters with subscriptions in INI parser (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Use template string Created Feb. 22, 2019, 3:47 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 | test/filterStorage_readwrite.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/iniParser.js
===================================================================
--- a/lib/iniParser.js
+++ b/lib/iniParser.js
@@ -102,17 +102,20 @@
case "subscription filters":
if (this.subscriptions.length)
{
let currentSubscription = this.subscriptions[
this.subscriptions.length - 1
];
for (let text of this._curObj)
+ {
currentSubscription.addFilterText(text);
+ Filter.fromText(text).addSubscription(currentSubscription);
+ }
}
break;
}
}
if (line === null)
return;
« no previous file with comments | « no previous file | test/filterStorage_readwrite.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld