From 778e7f9800e9d6854f8d5c6115f5e967b4b6fd80 Mon Sep 17 00:00:00 2001 From: rxi Date: Mon, 3 Mar 2014 20:29:11 +0000 Subject: [PATCH] Fixed lume.format() where missing keys were not ignored --- lume.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lume.lua b/lume.lua index 6c40fef..2160f97 100644 --- a/lume.lua +++ b/lume.lua @@ -231,7 +231,7 @@ end function lume.format(str, vars) - local f = function(x) return tostring(vars[x]) or "{" .. x .. "}" end + local f = function(x) return tostring(vars[x] or "{" .. x .. "}") end return (str:gsub("{(.-)}", f)) end