From c9f72bee03261e25b8585879759c7e22d237bb3e Mon Sep 17 00:00:00 2001 From: SukkaW Date: Thu, 27 Mar 2025 11:01:30 +0800 Subject: [PATCH] Perf: improve bulkAddDomainSuffixes --- Build/lib/rules/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/lib/rules/base.ts b/Build/lib/rules/base.ts index ac29964f..67e8bd56 100644 --- a/Build/lib/rules/base.ts +++ b/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; }