Rrefactor: rewrite trie in class

This commit is contained in:
SukkaW
2024-10-02 22:01:38 +08:00
parent d1041f0e59
commit a7e7c19a51
7 changed files with 187 additions and 185 deletions

View File

@@ -76,7 +76,7 @@ export const parseGfwList = async () => {
})).text();
const topDomains = parse(res);
const trie = createTrie(blackSet, true);
const trie = createTrie(blackSet);
for await (const [domain] of topDomains) {
if (trie.has(domain)) {