Browse Source

Fix AdGuardHome: remove hostname anchor

SukkaW 1 year ago
parent
commit
f01cad25b7
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Build/lib/rules/domainset.ts

+ 4 - 4
Build/lib/rules/domainset.ts

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