From 0d3688d7fc92f74d9e7b6548f857aee55a073f06 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Wed, 21 Dec 2022 14:39:55 +0100 Subject: [PATCH] Fixed parseItemFilterExpression. --- src/itemscript.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itemscript.lua b/src/itemscript.lua index febd4e0..26d1897 100644 --- a/src/itemscript.lua +++ b/src/itemscript.lua @@ -73,7 +73,7 @@ end Prepending # will do a fuzzy match using string.find. ]]-- local function parseItemFilterExpression(expr) - local prefixIdx, prefixIdxEnd = string.find(expr, "^[!#]*") + local prefixIdx, prefixIdxEnd = string.find(expr, "^[!#]+") local fuzzy = false local negated = false if prefixIdx ~= nil then