From e854dfdf53db1534e7c517009a45ac223ff5392a Mon Sep 17 00:00:00 2001 From: "R. Bramaditya" Date: Tue, 30 Sep 2025 11:56:02 +0700 Subject: [PATCH] regex failed to match last segment of url --- lua/nvim-treesitter/install.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 29c91356c..eb7618353 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -260,7 +260,7 @@ local function do_download(logger, url, project_name, cache_dir, revision, outpu do -- Move tmp dir to output dir local dir_rev = revision:find('^v%d') and revision:sub(2) or revision - local repo_project_name = url:match('[^/]-$') + local repo_project_name = url:match('[^/]+$') local extracted = fs.joinpath(tmp, repo_project_name .. '-' .. dir_rev) logger:debug('Moving %s to %s/...', extracted, output_dir) local err = uv_rename(extracted, output_dir)