From: Conny Sjöblom Date: Fri, 7 Feb 2014 07:02:58 +0000 (+0200) Subject: coin regex fixed X-Git-Url: https://jfr.im/git/erebus.git/commitdiff_plain/d85eeb9b35ff63e45109a0a1677ff20835254ad6?ds=inline coin regex fixed --- diff --git a/modules/coins.py b/modules/coins.py index e3466b0..34bbb54 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -22,7 +22,8 @@ import json import requests coin_regex = ( - re.compile(r'([0-9., ]+[0-9]+) (BTC|bitcoin|doge|dogecoin|ltc|litecoin)'), # Fix regex +# re.compile(r'([0-9., ]+[0-9]+) (BTC|bitcoin|doge|dogecoin|ltc|litecoin)'), # Fix regex + re.compile(r'([0-9.\s]+)\s(btc|bitcoin|doge|dogecoin|ltc|litecoin)'), ) url = 'http://www.cryptocoincharts.info/v2/api/tradingPairs'