summaryrefslogtreecommitdiff
path: root/blaunits.rb
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2018-02-01 15:26:35 +0000
committerJoe Robinson <joe@lc8n.com>2018-02-01 15:26:35 +0000
commit20ab0ada7d7eab957d429e72b389e2b35779252c (patch)
treed548d69073eb2741efbafb75aa46906eacc17ab5 /blaunits.rb
parentc83afef1d907c44343dff7b7afd3692881357aa9 (diff)
Compare uppercase crypto to fix name matching
Diffstat (limited to 'blaunits.rb')
-rwxr-xr-xblaunits.rb2
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