From 22bd39fd42e469339ff1ccac9f8c16cc00f52211 Mon Sep 17 00:00:00 2001 From: potato Date: Tue, 6 Sep 2016 15:07:47 +0200 Subject: [PATCH] [fix] only 1-word search triggers the engine --- searx/engines/dictzone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/dictzone.py b/searx/engines/dictzone.py index 212218343..b58d7ec62 100644 --- 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'