From 6af690caf928d33b03325e6474a3c3bcbc407a10 Mon Sep 17 00:00:00 2001 From: desertkaz Date: Thu, 5 Oct 2023 17:17:42 -0700 Subject: [PATCH 1/2] downcase data for search args.item is always lowercase. this change enables searching for keywords with uppercase values. e.g. god names, races. --- inventory-manager.lic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory-manager.lic b/inventory-manager.lic index d7f8389d89..11c2047f8c 100644 --- a/inventory-manager.lic +++ b/inventory-manager.lic @@ -359,7 +359,7 @@ class InventoryManager total_found = 0 DRC.message "Checking #{k}:" v.each { |data| - if data.include?(item) + if data.downcase.match?(item) total_found += 1 DRC.message "Match #{total_found}): #{data}" end From 82575829961bf6d85d2ef183d282bf7b52aa113d Mon Sep 17 00:00:00 2001 From: desertkaz Date: Thu, 5 Oct 2023 17:21:37 -0700 Subject: [PATCH 2/2] use include like upstream instead of match --- inventory-manager.lic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory-manager.lic b/inventory-manager.lic index 11c2047f8c..b299de26e8 100644 --- a/inventory-manager.lic +++ b/inventory-manager.lic @@ -359,7 +359,7 @@ class InventoryManager total_found = 0 DRC.message "Checking #{k}:" v.each { |data| - if data.downcase.match?(item) + if data.downcase.include?(item) total_found += 1 DRC.message "Match #{total_found}): #{data}" end