Skip to content

Commit 945d161

Browse files
authored
fix: remove leading 'v' in latest version (#116)
1 parent 6f59909 commit 945d161

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/elixir/utils.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
local Path = require("plenary.path")
21
local M = {}
32

43
function M.safe_path(path)
@@ -30,7 +29,7 @@ function M.latest_release(owner, repo)
3029
)
3130
local resp = vim.json.decode(vim.fn.system(curl))
3231

33-
return resp and resp.tag_name or nil
32+
return resp and resp.tag_name:gsub("^v", "") or nil
3433
end
3534

3635
return M

0 commit comments

Comments
 (0)