Skip to content

Commit

Permalink
fix(install): bug causing : to be appended to version in rocks.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Dec 9, 2023
1 parent 1d88cfa commit f34abe3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/rocks/operations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ operations.install = function(name, version, progress_handle)
name = name,
-- The `gsub` makes sure to escape all punctuation characters
-- so they do not get misinterpreted by the lua pattern engine.
version = sc.stdout:match(name:gsub("%p", "%%%1") .. "%s+(%S+)"),
-- We also exclude `-<specrev>` from the version match.
version = sc.stdout:match(name:gsub("%p", "%%%1") .. "%s+([^-%s]+)"),
}
if progress_handle then
progress_handle:report({
Expand Down

0 comments on commit f34abe3

Please sign in to comment.