mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 04:21:53 +08:00
Chore: change domain dedupe method
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user