From 42df2df44fcbbd30d9c38cb9473c10edb7e5ac4d Mon Sep 17 00:00:00 2001 From: SukkaW Date: Sun, 27 Oct 2024 23:23:37 +0800 Subject: [PATCH] Fix AdGuardHome syntax --- Build/lib/rules/domainset.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Build/lib/rules/domainset.ts b/Build/lib/rules/domainset.ts index 27962a00..c42fa05c 100644 --- a/Build/lib/rules/domainset.ts +++ b/Build/lib/rules/domainset.ts @@ -103,18 +103,18 @@ export class DomainsetOutput extends RuleOutput { 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}`); + results.push(`@@|${domain}^`); } } for (let i = 0, len = this.$preprocessed.length; i < len; i++) { const domain = this.$preprocessed[i]; if (domain[0] === '.') { - results.push(`||${domain.slice(1)}`); + results.push(`||${domain.slice(1)}^`); } else { - results.push(`|${domain}`); + results.push(`|${domain}^`); } }