diff options
| author | asciimoo <asciimoo@gmail.com> | 2013-12-01 16:42:37 +0100 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2013-12-01 16:42:37 +0100 |
| commit | ab7fb1190d0a84564c8cc4ea141999f3d5f9eca6 (patch) | |
| tree | aa626f967a803fba76a0bd8050f5fa6a982043b0 /searx | |
| parent | a35128f5e0af70d2a858f736e020ce451f652565 (diff) | |
[enh] smarter currency query parse II.
Diffstat (limited to 'searx')
| -rw-r--r-- | searx/engines/currency_convert.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/currency_convert.py b/searx/engines/currency_convert.py index b8ba7707f..358d6b67e 100644 --- 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) |