diff options
-rw-r--r-- | lib/gitano/lace.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gitano/lace.lua b/lib/gitano/lace.lua index 685d625..3bea565 100644 --- a/lib/gitano/lace.lua +++ b/lib/gitano/lace.lua @@ -137,7 +137,10 @@ local function _do_simple_match(ctx, key, matchtype, value) else local ret = false for k in pairs(kk) do - ret = ret or check(value, k) + -- Only bother if the key is a string (set-form) + if type(k) == "string" then + ret = ret or check(value, k) + end end if matchtype:sub(1,1) == "!" then ret = not ret |