Fix: salvaged rules might not include all subdomains

This commit is contained in:
SukkaW 2025-01-04 03:34:17 +08:00
parent 0540c1de21
commit 6c31408703

View File

@ -490,8 +490,10 @@ export function parse($line: string, result: [string, ParseType], allowThirdPart
case 104: { /** h */
/** |http://x.o2.pl^ */
if (line.startsWith('http://', sliceStart)) {
includeAllSubDomain = false;
sliceStart += 7;
} else if (line.startsWith('https://', sliceStart)) {
includeAllSubDomain = false;
sliceStart += 8;
}
break;