diff options
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r-- | otfl-font-nms.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index a3723eb..888c6da 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -549,7 +549,8 @@ local function read_fcdata(data) local list = { } for line in data:lines() do line = line:gsub(": ", "") - local ext = lower(match(line,"^.+%.([^/\\]-)$")) + local ext = match(line,"^.+%.([^/\\]-)$") or "" + ext = lower(ext) if ext == "otf" or ext == "ttf" or ext == "ttc" or ext == "dfont" then list[#list+1] = path_normalize(line:gsub(": ", "")) end |