summaryrefslogtreecommitdiff
path: root/otfl-luat-dum.lua
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2009-04-12 21:17:28 +0200
committerElie Roux <elie.roux@telecom-bretagne.eu>2009-04-12 21:17:28 +0200
commite86146694fb4159c4ae2ad9969c6c992a19e9c09 (patch)
treec85077dc4545f5df461e5e21bcf1c3897c42fbeb /otfl-luat-dum.lua
parent5a642e00686d0a9354480fea2aced3d1c4fc47a8 (diff)
downloadluaotfload-e86146694fb4159c4ae2ad9969c6c992a19e9c09.tar.gz
syncronizing with the latest ConTeXt beta, fixing bugs
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