mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Rrefactor: rewrite trie in class
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user