diff options
author | RealBadAngel <mk@realbadangel.pl> | 2013-03-03 10:37:48 +0100 |
---|---|---|
committer | RealBadAngel <mk@realbadangel.pl> | 2013-03-03 10:37:48 +0100 |
commit | 0137db6a8a6a62b9dde9c1457ddda17f307c4b30 (patch) | |
tree | 6744b7eba0b7e4cd2f515bb4c87176b1c2137c6e | |
parent | ab14c44c49eb2eea5e1771675a799d6f1246101c (diff) |
UI bugfix using [ in search pattern
-rw-r--r-- | unified_inventory/api.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unified_inventory/api.lua b/unified_inventory/api.lua index 01bcc8e..4a85dc6 100644 --- a/unified_inventory/api.lua +++ b/unified_inventory/api.lua @@ -505,6 +505,13 @@ unified_inventory.apply_filter = function(player,filter) local player_name = player:get_player_name() local size=0 local str_temp1=string.lower(filter) + if str_temp1 ~= "" then + for i=1,str_temp1:len(),1 do + if string.byte(str_temp1,i) == 91 then + str_temp1="" + end + end + end local str_temp2 local str_temp3 unified_inventory.filtered_items_list[player_name]={} |