Re-enable DOMAIN-KEYWORD overlapping DOMAIN-WILDCARD dedupe
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy to Cloudflare Pages (3.114.12) (push) Has been cancelled
Build / Deploy to GitHub and GitLab (push) Has been cancelled

This commit is contained in:
SukkaW 2025-10-17 20:58:59 +08:00
parent 5807e07608
commit 7ded88aaa3
2 changed files with 6 additions and 1 deletions

View File

@ -259,7 +259,7 @@ export const buildRejectDomainSet = task(require.main === module, __filename)(as
rejectPhisingDomainsetOutput.whitelistDomain(arg);
// e.g. .data.microsort.com can strip waston*.event.data.microsort.com
rejectNonIpRulesetOutput.wildcardTrie.whitelist(arg);
// rejectNonIpRulesetOutput.wildcardTrie.whitelist(arg);
});
});

View File

@ -444,6 +444,11 @@ export class FileOutput {
if (this.wildcardSet.size) {
this.wildcardSet.forEach((wildcard) => {
// Overlapped w/ DOMAIN-kEYWORD
if (kwfilter(wildcard)) {
return;
}
for (let i = 0; i < strategiesLen; i++) {
const strategy = this.strategies[i];
strategy.writeDomainWildcard(wildcard);