From 85367d35be6a174a76eb0b91fd9f82314e3abac2 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Wed, 7 May 2014 10:42:31 +0100 Subject: [PATCH] elua: match file extensions in a case insensitive way --- src/bin/elua/xgettext.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/elua/xgettext.lua b/src/bin/elua/xgettext.lua index 56f36afb1f..cecb1c1cb3 100644 --- a/src/bin/elua/xgettext.lua +++ b/src/bin/elua/xgettext.lua @@ -190,7 +190,7 @@ if hasxgettext and not onlylua then local gargs = { hasxgettext } if not opts["j"] and not neverlua then for i, v in ipairs(args) do - if v:match("^.+%.lua$") then + if v:lower():match("^.+%.lua$") then gargs[#gargs + 1] = "--join-existing" break end @@ -201,7 +201,7 @@ if hasxgettext and not onlylua then end local ngargs = #gargs for i, v in ipairs(args) do - if not v:match("^.+%.lua$") then + if not v:lower():match("^.+%.lua$") then gargs[#gargs + 1] = v end end