Browse Source

Fix AdGuardHome format

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

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

@@ -103,7 +103,7 @@ 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}^`);
       }
       }