From be14c9782da0c7f125322aefd5647ffe26263653 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 29 Sep 2017 19:51:28 -0300 Subject: Fix: don't eat up one slash when fixing the path --- src/luarocks/core/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/core/util.lua b/src/luarocks/core/util.lua index a025da7d..1a963a65 100644 --- a/src/luarocks/core/util.lua +++ b/src/luarocks/core/util.lua @@ -150,7 +150,7 @@ function util.cleanup_path(list, sep, lua_version) for _, part in ipairs(parts) do part = part:gsub("//", "/") if lua_version then - part = part:gsub("/lua/[%d.]+/", "/lua/"..lua_version) + part = part:gsub("/lua/[%d.]+/", "/lua/"..lua_version.."/") end if not entries[part] then table.insert(final, part) -- cgit v1.2.3-55-g6feb