diff --git a/src/itemscript.lua b/src/itemscript.lua index 26d1897..538934e 100644 --- a/src/itemscript.lua +++ b/src/itemscript.lua @@ -77,7 +77,7 @@ local function parseItemFilterExpression(expr) local fuzzy = false local negated = false if prefixIdx ~= nil then - for i = prefixIdx, i <= prefixIdxEnd do + for i = prefixIdx, prefixIdxEnd do if expr[i] == "!" then negated = true elseif expr[i] == "#" then