diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-05-31 19:51:38 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-05-31 19:54:22 +0300 |
commit | d8182391db400f8827e068ac72e9b8eb7c85af01 (patch) | |
tree | bb0f0400ae589a1828e004d7f8f7782a76aaa136 /otfl-font-nms.lua | |
parent | 48f5711236e0196562bd5601fd4c645b9f37cecd (diff) | |
download | luaotfload-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.lua | 2 |
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 |