Browse Source

Perf: improve bulkAddDomainSuffixes

SukkaW 1 year ago
parent
commit
c9f72bee03
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Build/lib/rules/base.ts

+ 1 - 1
Build/lib/rules/base.ts

@@ -96,7 +96,7 @@ export class FileOutput {
   }
 
   addDomainSuffix(domain: string, lineFromDot = domain[0] === '.') {
-    this.domainTrie.add(domain, true, lineFromDot ? 1 : 0);
+    this.domainTrie.add(domain, true, null, lineFromDot ? 1 : 0);
     return this;
   }