From e86146694fb4159c4ae2ad9969c6c992a19e9c09 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Sun, 12 Apr 2009 21:17:28 +0200 Subject: syncronizing with the latest ConTeXt beta, fixing bugs --- otfl-luat-dum.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'otfl-luat-dum.lua') 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 -- cgit v1.2.3