From f01cad25b7277d563adfe739d78ae3da87ef28dc Mon Sep 17 00:00:00 2001 From: SukkaW Date: Fri, 25 Oct 2024 10:02:40 +0800 Subject: [PATCH] Fix AdGuardHome: remove hostname anchor --- 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 389050b3..6c7be722 100644 --- a/Build/lib/rules/domainset.ts +++ b/Build/lib/rules/domainset.ts @@ -99,18 +99,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}`); } }