commit: 22bd39fd42e469339ff1ccac9f8c16cc00f52211
parent 7bf1013c1591c1af177063477fb4ac9ed178ff2a
Author: potato <mail@crazypotato.tk>
Date: Tue, 6 Sep 2016 15:07:47 +0200
[fix] only 1-word search triggers the engine
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/searx/engines/dictzone.py b/searx/engines/dictzone.py
@@ -9,7 +9,7 @@ categories = ['general']
url = 'http://dictzone.com/{from_lang}-{to_lang}-dictionary/{query}'
weight = 100
-parser_re = re.compile(u'.*?([a-z]+)-([a-z]+) (.+)', re.I)
+parser_re = re.compile(u'.*?([a-z]+)-([a-z]+) ([^ ]+)$', re.I)
results_xpath = './/table[@id="r"]/tr'