Fix AdGuardHome format

This commit is contained in:
SukkaW 2024-11-01 00:13:51 +08:00
parent f8b787f54b
commit 49ffc7f98c

View File

@ -103,7 +103,7 @@ export class DomainsetOutput extends RuleOutput<Preprocessed> {
for (let i = 0, len = whitelistArray.length; i < len; i++) {
const domain = whitelistArray[i];
if (domain[0] === '.') {
results.push(`@@||${domain.slice(1)}&`);
results.push(`@@||${domain.slice(1)}^`);
} else {
results.push(`@@|${domain}^`);
}