fix(capture): preserve file-relative path evidence after separators

This commit is contained in:
morluto
2026-10-13 23:02:00 +08:00
parent 0aff997b31
commit 4d5d1f5daa
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -79,6 +79,8 @@ def authority_start(text, base_scheme=None):
if prefix is None:
return None
start = prefix.end()
if base_scheme == "file":
return start, True
while start < len(text) and text[start] in "/\\":
start += 1
return start, True