From 20ab0ada7d7eab957d429e72b389e2b35779252c Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Thu, 1 Feb 2018 15:26:35 +0000 Subject: Compare uppercase crypto to fix name matching --- blaunits.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'blaunits.rb') diff --git a/blaunits.rb b/blaunits.rb index e1ef041..68feff0 100755 --- a/blaunits.rb +++ b/blaunits.rb @@ -13,7 +13,7 @@ begin response = Net::HTTP.get(uri) currencies = JSON.parse(response) currencies.each do |currency| - if currency["id"] == currency_name || currency["name"] == currency_name || currency["symbol"] == currency_name + if currency["id"].upcase == currency_name || currency["name"].upcase == currency_name || currency["symbol"].upcase == currency_name return currency["id"] end end -- cgit v1.2.3