logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: ab7fb1190d0a84564c8cc4ea141999f3d5f9eca6
parent: a35128f5e0af70d2a858f736e020ce451f652565
Author: asciimoo <asciimoo@gmail.com>
Date:   Sun,  1 Dec 2013 16:42:37 +0100

[enh] smarter currency query parse II.

Diffstat:

searx/engines/currency_convert.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/searx/engines/currency_convert.py b/searx/engines/currency_convert.py @@ -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)