mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Use stream in build tools
This commit is contained in:
@@ -209,7 +209,7 @@ const domainSuffixSet = new Set();
|
||||
};
|
||||
const sortedDomainSets = dudupedDominArray
|
||||
.map((v) => {
|
||||
const domain = getDomain(v.charCodeAt(0) === 46 ? v.slice(1) : v) || v;
|
||||
const domain = getDomain(v[0] === '.' ? v.slice(1) : v) || v;
|
||||
rejectDomainsStats[domain] = (rejectDomainsStats[domain] || 0) + 1;
|
||||
return { v, domain };
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user