From ad0f702a55442e7aeca2e3486a3dd01e3bbad75e Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 11 Jan 2016 20:11:45 -0800 Subject: [PATCH] Escape "." corrently in respack.lua Using \ works in minilua, but not real lua. Closes #1898. --- tools/respack.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/respack.lua b/tools/respack.lua index 85955d117..1281ac2ed 100755 --- a/tools/respack.lua +++ b/tools/respack.lua @@ -44,7 +44,7 @@ out_cpp:write('#include "libresrc.h"\n') for line in manifest:lines() do if line:find('.') then local file = try_open(path..line, 'rb') - local id = line:gsub('^.*/', ''):gsub('\.[a-z]+$', '') + local id = line:gsub('^.*/', ''):gsub('%.[a-z]+$', '') out_cpp:write("const unsigned char " .. id .. "[] = {") local len = 0