OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 */ | 687 */ |
688 function INIParser() | 688 function INIParser() |
689 { | 689 { |
690 this.fileProperties = this.curObj = {}; | 690 this.fileProperties = this.curObj = {}; |
691 this.subscriptions = []; | 691 this.subscriptions = []; |
692 this.knownFilters = new Map(); | 692 this.knownFilters = new Map(); |
693 this.knownSubscriptions = new Map(); | 693 this.knownSubscriptions = new Map(); |
694 } | 694 } |
695 INIParser.prototype = | 695 INIParser.prototype = |
696 { | 696 { |
697 linesProcessed: 0, | |
698 subscriptions: null, | 697 subscriptions: null, |
699 knownFilters: null, | 698 knownFilters: null, |
700 knownSubscriptions: null, | 699 knownSubscriptions: null, |
701 wantObj: true, | 700 wantObj: true, |
702 fileProperties: null, | 701 fileProperties: null, |
703 curObj: null, | 702 curObj: null, |
704 curSection: null, | 703 curSection: null, |
705 | 704 |
706 process(val) | 705 process(val) |
707 { | 706 { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 else if (this.wantObj === false && val) | 770 else if (this.wantObj === false && val) |
772 this.curObj.push(val.replace(/\\\[/g, "[")); | 771 this.curObj.push(val.replace(/\\\[/g, "[")); |
773 } | 772 } |
774 finally | 773 finally |
775 { | 774 { |
776 Filter.knownFilters = origKnownFilters; | 775 Filter.knownFilters = origKnownFilters; |
777 Subscription.knownSubscriptions = origKnownSubscriptions; | 776 Subscription.knownSubscriptions = origKnownSubscriptions; |
778 } | 777 } |
779 } | 778 } |
780 }; | 779 }; |
OLD | NEW |