From 16dc19bd5c7f3977eda5853d5392223593964eae Mon Sep 17 00:00:00 2001 From: Sathvik Birudavolu <8377116+BSathvik@users.noreply.github.com> Date: Sun, 9 Oct 2022 15:43:14 -0400 Subject: [PATCH] nit --- lua/openingh/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/openingh/utils.lua b/lua/openingh/utils.lua index 250374f..90f2a0d 100644 --- a/lua/openingh/utils.lua +++ b/lua/openingh/utils.lua @@ -20,7 +20,7 @@ end -- nil is returned when the url cannot be parsed function M.parse_gh_remote(url) -- 3 capture groups for host, org/user and repo. whitespace is trimmed - -- when cloning with http://, gh redirects to https://, but remote is stays http + -- when cloning with http://, gh redirects to https://, but remote stays http local http = { string.find(url, "https?://([^/]*)/([^/]*)/([^%s/]*)") } -- ssh url can be of type: -- git@some.github.com:user_or_org/reponame.git