Fixed parser again...

This commit is contained in:
Andrew Lalis 2022-12-21 14:56:53 +01:00
parent 74821942cb
commit 035c7a4a70
1 changed files with 3 additions and 2 deletions

View File

@ -66,9 +66,10 @@ local function parseItemFilterExpression(expr)
local negated = false
if prefixIdx ~= nil then
for i = prefixIdx, prefixIdxEnd do
if expr[i] == "!" then
local char = string.sub(expr, i, i)
if char == "!" then
negated = true
elseif expr[i] == "#" then
elseif char == "#" then
fuzzy = true
end
end