Sfoglia il codice sorgente

[enh] smarter currency query parse II.

asciimoo 11 anni fa
parent
commit
ab7fb1190d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      searx/engines/currency_convert.py

+ 1
- 1
searx/engines/currency_convert.py Vedi File

@@ -5,7 +5,7 @@ categories = []
5 5
 url = 'http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s={query}=X'
6 6
 weight = 100
7 7
 
8
-parser_re = re.compile(r'^\W*(\d+(?:\.\d+)?)\W*([a-z]{3})\W*(?:in)?\W*([a-z]{3})\W*$')
8
+parser_re = re.compile(r'^\W*(\d+(?:\.\d+)?)\W*([a-z]{3})\W*(?:in)?\W*([a-z]{3})\W*$', re.I)
9 9
 
10 10
 def request(query, params):
11 11
     m = parser_re.match(query)