summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-08-20 14:55:00 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-08-20 14:55:00 +0100
commit6634c309286656a51a5ae5cb5a36c4e9a99ab4a4 (patch)
tree69d2f15223186ffe44f7dc9a3bbd1e8c45410107
parent6c19bae72fefb677990f3375ff5b9fec5e3c2a2a (diff)
downloadtongue-6634c309286656a51a5ae5cb5a36c4e9a99ab4a4.tar.bz2
Support args being nil equiv to args being {}
-rw-r--r--lib/tongue/langpack.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tongue/langpack.lua b/lib/tongue/langpack.lua
index cba88f9..41558df 100644
--- a/lib/tongue/langpack.lua
+++ b/lib/tongue/langpack.lua
@@ -266,6 +266,7 @@ end
-- @function expand
function langpack:expand(token, args)
local pack = self
+ args = args or {}
if not args._pack then args._pack = pack end
local ok, expn = pcall(function()
if not pack.entries[token] then