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 */ case 104: { /** h */
/** |http://x.o2.pl^ */ /** |http://x.o2.pl^ */
if (line.startsWith('http://', sliceStart)) { if (line.startsWith('http://', sliceStart)) {
includeAllSubDomain = false;
sliceStart += 7; sliceStart += 7;
} else if (line.startsWith('https://', sliceStart)) { } else if (line.startsWith('https://', sliceStart)) {
includeAllSubDomain = false;
sliceStart += 8; sliceStart += 8;
} }
break; break;