summaryrefslogtreecommitdiff
path: root/otfl-luat-dum.lua
diff options
context:
space:
mode:
Diffstat (limited to 'otfl-luat-dum.lua')
-rw-r--r--otfl-luat-dum.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/otfl-luat-dum.lua b/otfl-luat-dum.lua
index 7b959ca..5c53115 100644
--- a/otfl-luat-dum.lua
+++ b/otfl-luat-dum.lua
@@ -52,7 +52,7 @@ end
function input.findbinfile(name,kind)
if not kind or kind == "" then
- kind = string.match(name,"%.(.-)$")
+ kind = file.extname(name) -- string.match(name,"%.([^%.]-)$")
end
- return input.find_file(name,kind and remapper[kind])
+ return input.find_file(name,(kind and remapper[kind]) or kind)
end