mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
regex failed to match last segment of url
This commit is contained in:
parent
77362027f7
commit
e854dfdf53
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue