From c311f2714e09e3d603891b0260ca53fb92551d51 Mon Sep 17 00:00:00 2001 From: gizmo385 Date: Tue, 17 Dec 2024 09:00:04 +0000 Subject: [PATCH] Fix SSH local remote url regex --- lazy_github/lib/git_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lazy_github/lib/git_cli.py b/lazy_github/lib/git_cli.py index 5ae40d2..7d82ea8 100644 --- a/lazy_github/lib/git_cli.py +++ b/lazy_github/lib/git_cli.py @@ -7,7 +7,7 @@ # "\/" Match the forward slash # "([^.]+)" Match everything until the period, which should be the repo name # ".git" Match the .git suffix -_SSH_GIT_REMOTE_REGEX = re.compile(r".+:([^\/]+)\/([^.]+)(.git)?") +_SSH_GIT_REMOTE_REGEX = re.compile(r".+:([^\/]+)\/([^.]+)(?:.git)?") _HTTPS_GIT_REMOTE_REGEX = re.compile(r"^https:\/\/[^.]+[^\/]+\/([^\/]+)\/([^\/]+)$")