summaryrefslogtreecommitdiff
path: root/searx/engines/dictzone.py
diff options
context:
space:
mode:
authorpotato <mail@crazypotato.tk>2016-09-06 15:07:47 +0200
committerpotato <mail@crazypotato.tk>2016-09-06 15:07:47 +0200
commit22bd39fd42e469339ff1ccac9f8c16cc00f52211 (patch)
treedb92bf877316a1ae489f53beba71b0a974533b72 /searx/engines/dictzone.py
parent7bf1013c1591c1af177063477fb4ac9ed178ff2a (diff)
downloadsearxng-22bd39fd42e469339ff1ccac9f8c16cc00f52211.tar.gz
searxng-22bd39fd42e469339ff1ccac9f8c16cc00f52211.zip
[fix] only 1-word search triggers the engine
Diffstat (limited to 'searx/engines/dictzone.py')
-rw-r--r--searx/engines/dictzone.py2
1 files changed, 1 insertions, 1 deletions
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'