fix regex for detecting git+file inputs

This commit is contained in:
Jörg Thalheim
2025-02-20 09:59:42 +07:00
parent 122dbf4240
commit 1f3bd09245

View File

@@ -37,7 +37,8 @@ def is_local_input(node: dict[str, dict[str, str]]) -> bool:
# matches path and git+file:// # matches path and git+file://
return ( return (
locked["type"] == "path" locked["type"] == "path"
or re.match(r"^\w+\+file://", locked.get("url", "")) is not None # local vcs inputs i.e. git+file:///
or re.match(r"^file://", locked.get("url", "")) is not None
) )