blob: 4d2050c66263882d98fc42fd5b04c433625fc679 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
http://devel.aegisub.org/ticket/1898
diff --git a/tools/respack.lua b/tools/respack.lua
index 85955d1..1281ac2 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
|