diff --git a/app/models/bitcoin_address.rb b/app/models/bitcoin_address.rb index bdb3c3e..0058d8d 100644 --- a/app/models/bitcoin_address.rb +++ b/app/models/bitcoin_address.rb @@ -9,7 +9,7 @@ def request_balance url logger.info("request_balance: #{url}") response=Net::HTTP.get(URI.parse(url)) logger.info("response: #{response}") - rem=response.gsub('\\.', '') + rem=response.gsub(/\W/, '') logger.info("removed: #{rem}") (Integer(rem) rescue false)