summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/aegisub/files/aegisub-3.2.2-fix-lua-regexp.patch')
-rw-r--r--media-video/aegisub/files/aegisub-3.2.2-fix-lua-regexp.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/media-video/aegisub/files/aegisub-3.2.2-fix-lua-regexp.patch b/media-video/aegisub/files/aegisub-3.2.2-fix-lua-regexp.patch
new file mode 100644
index 000000000000..a05ed2d65125
--- /dev/null
+++ b/media-video/aegisub/files/aegisub-3.2.2-fix-lua-regexp.patch
@@ -0,0 +1,13 @@
+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