Browse Source

[fix] only 1-word search triggers the engine

potato 8 years ago
parent
commit
22bd39fd42
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      searx/engines/dictzone.py

+ 1
- 1
searx/engines/dictzone.py View File

@@ -9,7 +9,7 @@ categories = ['general']
9 9
 url = 'http://dictzone.com/{from_lang}-{to_lang}-dictionary/{query}'
10 10
 weight = 100
11 11
 
12
-parser_re = re.compile(u'.*?([a-z]+)-([a-z]+) (.+)', re.I)
12
+parser_re = re.compile(u'.*?([a-z]+)-([a-z]+) ([^ ]+)$', re.I)
13 13
 results_xpath = './/table[@id="r"]/tr'
14 14
 
15 15