diff options
Diffstat (limited to 'TOOLS')
-rw-r--r-- | TOOLS/lua/autoload.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/TOOLS/lua/autoload.lua b/TOOLS/lua/autoload.lua index 2737418dcd..0c8c9a5381 100644 --- a/TOOLS/lua/autoload.lua +++ b/TOOLS/lua/autoload.lua @@ -30,7 +30,12 @@ function add_files_at(index, files) end function get_extension(path) - return string.match(path, "%.([^%.]+)$" ) + match = string.match(path, "%.([^%.]+)$" ) + if match == nil then + return "nomatch" + else + return match + end end table.filter = function(t, iter) |