Skip to content

Commit

Permalink
fix context.addFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom van Dijck committed Nov 30, 2017
1 parent 5a0b07c commit bc375f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/base/context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@
function context.addFilter(ctx, key, value)
if type(value) == "table" then
for i = 1, #value do
value[i] = value[i]:lower()
value[i] = tostring(value[i]):lower()
end
elseif value then
value = value:lower()
elseif value ~= nil then
value = tostring(value):lower()
end
ctx.terms[key:lower()] = value
end
Expand Down

0 comments on commit bc375f7

Please sign in to comment.