diff options
author | Joe Robinson <joe@lc8n.com> | 2018-02-01 15:26:35 +0000 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2018-02-01 15:26:35 +0000 |
commit | 20ab0ada7d7eab957d429e72b389e2b35779252c (patch) | |
tree | d548d69073eb2741efbafb75aa46906eacc17ab5 | |
parent | c83afef1d907c44343dff7b7afd3692881357aa9 (diff) |
Compare uppercase crypto to fix name matching
-rwxr-xr-x | blaunits.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |