Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
evanrittenhouse authored and radoering committed Mar 19, 2023
1 parent 042dc72 commit 543dcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poetry/vcs/git/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def _clone_submodules(cls, repo: Repo) -> None:
modules_config = repo_root.joinpath(".gitmodules")

# A relative URL by definition starts with ../ or ./
relative_submodule_regex = re.compile(r"^(\.{1,2})/?")
relative_submodule_regex = re.compile(r"^\.{1,2}/")

if modules_config.exists():
config = ConfigFile.from_path(str(modules_config))
Expand Down

0 comments on commit 543dcac

Please sign in to comment.