Merge pull request 'fix regex for detecting git+file inputs' (#2907) from fix-git-input into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2907
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user