aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/build/builtin.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/build/builtin.lua b/src/luarocks/build/builtin.lua
index 00fd09ea..ffdc9450 100644
--- a/src/luarocks/build/builtin.lua
+++ b/src/luarocks/build/builtin.lua
@@ -202,7 +202,7 @@ function builtin.run(rockspec)
202 for name, info in pairs(build.modules) do 202 for name, info in pairs(build.modules) do
203 local moddir = path.module_to_path(name) 203 local moddir = path.module_to_path(name)
204 if type(info) == "string" then 204 if type(info) == "string" then
205 local ext = info:match(".([^.]+)$") 205 local ext = info:match("%.([^.]+)$")
206 if ext == "lua" then 206 if ext == "lua" then
207 local filename = dir.base_name(info) 207 local filename = dir.base_name(info)
208 if info:match("init%.lua$") and not name:match("%.init$") then 208 if info:match("init%.lua$") and not name:match("%.init$") then
@@ -226,7 +226,7 @@ function builtin.run(rockspec)
226 if info[1] then sources = info end 226 if info[1] then sources = info end
227 if type(sources) == "string" then sources = {sources} end 227 if type(sources) == "string" then sources = {sources} end
228 for _, source in ipairs(sources) do 228 for _, source in ipairs(sources) do
229 local object = source:gsub(".[^.]*$", "."..cfg.obj_extension) 229 local object = source:gsub("%.[^.]*$", "."..cfg.obj_extension)
230 if not object then 230 if not object then
231 object = source.."."..cfg.obj_extension 231 object = source.."."..cfg.obj_extension
232 end 232 end