summaryrefslogtreecommitdiff
path: root/otfl-font-nms.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-05-31 19:51:38 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-05-31 19:54:22 +0300
commitd8182391db400f8827e068ac72e9b8eb7c85af01 (patch)
treebb0f0400ae589a1828e004d7f8f7782a76aaa136 /otfl-font-nms.lua
parent48f5711236e0196562bd5601fd4c645b9f37cecd (diff)
downloadluaotfload-d8182391db400f8827e068ac72e9b8eb7c85af01.tar.gz
Fix file extension filtering
Make sure to check last file extension; ignoring files like foo.ttf.bar-x.xyz.
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r--otfl-font-nms.lua2
1 files changed, 1 insertions, 1 deletions
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