From d8182391db400f8827e068ac72e9b8eb7c85af01 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 31 May 2010 19:51:38 +0300 Subject: Fix file extension filtering Make sure to check last file extension; ignoring files like foo.ttf.bar-x.xyz. --- otfl-font-nms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 43ef9a5..f0d0d17 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -528,7 +528,7 @@ local function scan_dir(dirname, fontnames, newfontnames, texmf) end for _,i in next, font_extensions do for _,ext in next, { i, upper(i) } do - found = glob(dirname .. "/**." .. ext) + found = glob(format("%s/**.%s$", dirname, ext)) -- note that glob fails silently on broken symlinks, which happens -- sometimes in TeX Live. if trace_search then -- cgit v1.2.3