diff options
author | potato <mail@crazypotato.tk> | 2016-09-06 15:07:47 +0200 |
---|---|---|
committer | potato <mail@crazypotato.tk> | 2016-09-06 15:07:47 +0200 |
commit | 22bd39fd42e469339ff1ccac9f8c16cc00f52211 (patch) | |
tree | db92bf877316a1ae489f53beba71b0a974533b72 /searx/engines/dictzone.py | |
parent | 7bf1013c1591c1af177063477fb4ac9ed178ff2a (diff) | |
download | searxng-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.py | 2 |
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' |