forked from Ponysearch/Ponysearch
[enh] smarter currency query parse II.
This commit is contained in:
parent
a35128f5e0
commit
ab7fb1190d
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ categories = []
|
|||
url = 'http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s={query}=X'
|
||||
weight = 100
|
||||
|
||||
parser_re = re.compile(r'^\W*(\d+(?:\.\d+)?)\W*([a-z]{3})\W*(?:in)?\W*([a-z]{3})\W*$')
|
||||
parser_re = re.compile(r'^\W*(\d+(?:\.\d+)?)\W*([a-z]{3})\W*(?:in)?\W*([a-z]{3})\W*$', re.I)
|
||||
|
||||
def request(query, params):
|
||||
m = parser_re.match(query)
|
||||
|
|
Loading…
Reference in a new issue