Fixed word matching for modded items.

This commit is contained in:
Andrew Lalis 2023-05-08 08:05:38 +02:00
parent a8242c610e
commit c326b4adad
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ function itemscript.parseFilterExpression(str)
fuzzy = true
str = string.sub(str, 2, -1)
end
local wordIdx1, wordIdx2 = string.find(str, "%a[%w%-_]*")
local wordIdx1, wordIdx2 = string.find(str, "%a[%w%-_:]*")
if wordIdx1 ~= nil then
local value = string.sub(str, wordIdx1, wordIdx2)
if not fuzzy and string.find(value, ":") == nil then