ソースを参照

Fix AdGuardHome syntax

SukkaW 1 年間 前
コミット
42df2df44f
1 ファイル変更4 行追加4 行削除
  1. 4 4
      Build/lib/rules/domainset.ts

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

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