summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-09-13 23:27:55 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-09-13 23:27:55 +0200
commitb3fa18a7d99d55d2daaeebd7f17db664719ef690 (patch)
tree4fcdf04966099bc18552c78e6a8172f708b6d96e /luaotfload-database.lua
parent0fe0554e033e1f87c4bf031b37791d0bd2f435e0 (diff)
downloadluaotfload-b3fa18a7d99d55d2daaeebd7f17db664719ef690.tar.gz
[fontloader] sync with Context as of 2013-09-13
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