mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Fix: salvaged rules might not include all subdomains
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user