diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-09-13 23:27:55 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-09-13 23:27:55 +0200 |
commit | b3fa18a7d99d55d2daaeebd7f17db664719ef690 (patch) | |
tree | 4fcdf04966099bc18552c78e6a8172f708b6d96e /luaotfload-database.lua | |
parent | 0fe0554e033e1f87c4bf031b37791d0bd2f435e0 (diff) | |
download | luaotfload-b3fa18a7d99d55d2daaeebd7f17db664719ef690.tar.gz |
[fontloader] sync with Context as of 2013-09-13
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r-- | luaotfload-database.lua | 2 |
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 |