elua: match file extensions in a case insensitive way

This commit is contained in:
Daniel Kolesa 2014-05-07 10:42:31 +01:00 committed by Daniel Kolesa
parent 38ae60f744
commit 85367d35be
1 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ if hasxgettext and not onlylua then
local gargs = { hasxgettext } local gargs = { hasxgettext }
if not opts["j"] and not neverlua then if not opts["j"] and not neverlua then
for i, v in ipairs(args) do for i, v in ipairs(args) do
if v:match("^.+%.lua$") then if v:lower():match("^.+%.lua$") then
gargs[#gargs + 1] = "--join-existing" gargs[#gargs + 1] = "--join-existing"
break break
end end
@ -201,7 +201,7 @@ if hasxgettext and not onlylua then
end end
local ngargs = #gargs local ngargs = #gargs
for i, v in ipairs(args) do for i, v in ipairs(args) do
if not v:match("^.+%.lua$") then if not v:lower():match("^.+%.lua$") then
gargs[#gargs + 1] = v gargs[#gargs + 1] = v
end end
end end