Skip to content

Commit 4012553

Browse files
semenkodiracdeltas
authored andcommitted
Add back in TLD rule for google.*
I think this was matching anyway, but let's be paranoid and keep it here for now. Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
1 parent e524a85 commit 4012553

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

chromium/rules.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ RuleSets.prototype = {
201201

202202
// Replace each portion of the domain with a * in turn
203203
var segmented = host.split(".");
204-
// length-1 to skip the TLD (there are no www.domain.* rules).
205-
for (var i = 0; i < segmented.length - 1; ++i) {
204+
for (var i = 0; i < segmented.length; ++i) {
206205
tmp = segmented[i];
207206
segmented[i] = "*";
208207
this.setInsert(results, this.targets[segmented.join(".")]);

0 commit comments

Comments
 (0)