summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index 2b98d92..5032955 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -1373,7 +1373,7 @@ local split_fontname = function (fontname)
--- fontname, separated by a dash, e.g. “Iwona-Regular”,
--- “GFSSolomos-Regular”
local splitted = { lpegmatch (dashsplitter, fontname) }
- if splitted then
+ if next (splitted) then
return sanitize_fontname (splitted [#splitted])
end
end