summaryrefslogtreecommitdiff
path: root/blaunits.rb
diff options
context:
space:
mode:
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