From 211464992a80747782548a2d9e3522ff45b37168 Mon Sep 17 00:00:00 2001 From: Damian Senn Date: Mon, 3 Jun 2024 11:08:39 +0200 Subject: [PATCH] fix: repo regex fixes #7 --- lua/gh-actions/github.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gh-actions/github.lua b/lua/gh-actions/github.lua index 07f9581..eda7878 100644 --- a/lua/gh-actions/github.lua +++ b/lua/gh-actions/github.lua @@ -28,7 +28,7 @@ function M.get_current_repository() local origin_url = table.concat(origin_url_job:result(), '') - return strip_git_suffix(origin_url):match('([^@/:]+)[:/](.+)$') + return strip_git_suffix(origin_url):match('([^@/:]+)[:/]([^/]+/[^/]+)$') end ---@param cmd? string