From c326b4adadb07b84f9dbb83f6503730220f2170d Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Mon, 8 May 2023 08:05:38 +0200 Subject: [PATCH] Fixed word matching for modded items. --- src/itemscript.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itemscript.lua b/src/itemscript.lua index 08dbe19..21b362c 100644 --- a/src/itemscript.lua +++ b/src/itemscript.lua @@ -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