Fixed word matching for modded items.
This commit is contained in:
parent
a8242c610e
commit
c326b4adad
|
@ -136,7 +136,7 @@ function itemscript.parseFilterExpression(str)
|
||||||
fuzzy = true
|
fuzzy = true
|
||||||
str = string.sub(str, 2, -1)
|
str = string.sub(str, 2, -1)
|
||||||
end
|
end
|
||||||
local wordIdx1, wordIdx2 = string.find(str, "%a[%w%-_]*")
|
local wordIdx1, wordIdx2 = string.find(str, "%a[%w%-_:]*")
|
||||||
if wordIdx1 ~= nil then
|
if wordIdx1 ~= nil then
|
||||||
local value = string.sub(str, wordIdx1, wordIdx2)
|
local value = string.sub(str, wordIdx1, wordIdx2)
|
||||||
if not fuzzy and string.find(value, ":") == nil then
|
if not fuzzy and string.find(value, ":") == nil then
|
||||||
|
|
Loading…
Reference in New Issue