elua: match file extensions in a case insensitive way
authorDaniel Kolesa <quaker66@gmail.com>
Wed, 7 May 2014 09:42:31 +0000 (10:42 +0100)
committerDaniel Kolesa <d.kolesa@samsung.com>
Tue, 10 Jun 2014 14:48:50 +0000 (15:48 +0100)
src/bin/elua/xgettext.lua

index 56f36af..cecb1c1 100644 (file)
@@ -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