Skip to content

Commit

Permalink
Merge pull request #958 from Blizzard/fix-context-addfilter
Browse files Browse the repository at this point in the history
fix context.addFilter
  • Loading branch information
tvandijck authored Nov 30, 2017
2 parents 117fc82 + bc375f7 commit 4be1372
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 4be1372

Please sign in to comment.