elua: match file extensions in a case insensitive way
This commit is contained in:
parent
38ae60f744
commit
85367d35be
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue