| Left: | ||
| Right: |
| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 100 this.subscriptions.push(subscription); | 100 this.subscriptions.push(subscription); |
| 101 break; | 101 break; |
| 102 | 102 |
| 103 case "subscription filters": | 103 case "subscription filters": |
| 104 if (this.subscriptions.length) | 104 if (this.subscriptions.length) |
| 105 { | 105 { |
| 106 let currentSubscription = this.subscriptions[ | 106 let currentSubscription = this.subscriptions[ |
| 107 this.subscriptions.length - 1 | 107 this.subscriptions.length - 1 |
| 108 ]; | 108 ]; |
| 109 for (let text of this._curObj) | 109 for (let text of this._curObj) |
| 110 { | |
| 111 currentSubscription.addFilterText(text); | 110 currentSubscription.addFilterText(text); |
| 112 Filter.fromText(text).addSubscription(currentSubscription); | |
|
Manish Jethani
2019/03/30 21:01:44
A side effect of this change is that `Filter` obje
hub
2019/04/04 03:48:15
In this patch or in a future one?
Manish Jethani
2019/04/04 05:44:20
In a future one, because it is an enhancement on t
hub
2019/04/04 20:54:44
Acknowledged.
| |
| 113 } | |
| 114 } | 111 } |
| 115 break; | 112 break; |
| 116 } | 113 } |
| 117 } | 114 } |
| 118 | 115 |
| 119 if (line === null) | 116 if (line === null) |
| 120 return; | 117 return; |
| 121 | 118 |
| 122 this._curSection = match[1].toLowerCase(); | 119 this._curSection = match[1].toLowerCase(); |
| 123 switch (this._curSection) | 120 switch (this._curSection) |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 143 } | 140 } |
| 144 finally | 141 finally |
| 145 { | 142 { |
| 146 Filter.knownFilters = origKnownFilters; | 143 Filter.knownFilters = origKnownFilters; |
| 147 Subscription.knownSubscriptions = origKnownSubscriptions; | 144 Subscription.knownSubscriptions = origKnownSubscriptions; |
| 148 } | 145 } |
| 149 } | 146 } |
| 150 } | 147 } |
| 151 | 148 |
| 152 exports.INIParser = INIParser; | 149 exports.INIParser = INIParser; |
| OLD | NEW |