Chore: change domain dedupe method

This commit is contained in:
SukkaW
2023-11-03 11:43:41 +08:00
parent 5701fc9b70
commit 31d021dd23
3 changed files with 5 additions and 8 deletions

View File

@@ -20,7 +20,8 @@ const domainDeduper = (inputDomains) => {
// if `.example.com` exists, then `example.com` should also be removed
const a = d.slice(1);
if (trie.has(a)) {
if (sets.has(a)) {
sets.delete(a);
}
}