ソースを参照

Fix: parse adguard filter ignore domain with `/`

SukkaW 1 年間 前
コミット
edfdbc8cdc
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Build/lib/parse-filter/filters.ts

+ 1 - 1
Build/lib/parse-filter/filters.ts

@@ -517,7 +517,7 @@ export function parse($line: string, result: [string, ParseType], allowThirdPart
   }
 
   const sliced = (sliceStart > 0 || sliceEnd < 0) ? line.slice(sliceStart, sliceEnd === 0 ? undefined : sliceEnd) : line;
-  if (sliced.length === 0) {
+  if (sliced.length === 0 || sliced.includes('/')) {
     result[1] = ParseType.Null;
     return result;
   }