mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Feat: include DOMAIN-WILDCARD in AdGuardHome output
This commit is contained in:
@@ -114,6 +114,15 @@ export class DomainsetOutput extends RuleOutput<Preprocessed> {
|
||||
}
|
||||
}
|
||||
|
||||
for (const wildcard of this.domainWildcard) {
|
||||
const processed = wildcard.replaceAll('?', '*');
|
||||
if (processed.startsWith('*.')) {
|
||||
results.push(`||${processed.slice(2)}^`);
|
||||
} else {
|
||||
results.push(`|${processed}^`);
|
||||
}
|
||||
}
|
||||
|
||||
return results;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user