summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal.lua b/internal.lua
index 76a242b..cad5a5d 100644
--- a/internal.lua
+++ b/internal.lua
@@ -93,9 +93,10 @@ function unified_inventory.apply_filter(player, filter)
local size = 0
local lfilter = string.lower(filter)
if lfilter ~= "" then
- for i=1, lfilter:len() do
- if lfilter:sub(i, i) == '[' then
- str_temp1 = ""
+ for c in lfilter:gmatch(".") do
+ if c == '[' or c == ']' or c == '{' or c == '}' or
+ c == '(' or c == ')' or c == '%' then
+ lfilter = ""
break
end
end