mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-14 02:00:37 +08:00
Fix: parse adguard filter ignore domain with /
This commit is contained in:
parent
a812c40384
commit
edfdbc8cdc
@ -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;
|
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;
|
result[1] = ParseType.Null;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user