Skip to content

Commit

Permalink
downcase data for search
Browse files Browse the repository at this point in the history
args.item is always lowercase.  this change enables searching for keywords with uppercase values.  e.g. god names, races.
  • Loading branch information
desertkaz authored Oct 6, 2023
1 parent 441ece9 commit 6af690c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inventory-manager.lic
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6af690c

Please sign in to comment.