We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27f6fef commit a3ed38aCopy full SHA for a3ed38a
chromium/rules.js
@@ -190,8 +190,11 @@ RuleSets.prototype = {
190
191
var tmp, t;
192
var results = [];
193
- if (this.targets[host])
194
- results = results.concat(this.targets[host]);
+ if (this.targets[host]) {
+ // Copy the host targets so we don't modify them.
195
+ results = this.targets[host].slice();
196
+ }
197
+
198
// replace each portion of the domain with a * in turn
199
var segmented = host.split(".");
200
for (var i = 0; i < segmented.length; ++i) {
0 commit comments