Browse Source

[fix] online_dictionary: regular expression

The query term of a engine-type `online_dictionary` can consist of more than one
word.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Markus Heiser 2 years ago
parent
commit
480476fdf3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/search/processors/online_dictionary.py

+ 1 - 1
searx/search/processors/online_dictionary.py

@@ -9,7 +9,7 @@ import re
 from searx.utils import is_valid_lang
 from .online import OnlineProcessor
 
-parser_re = re.compile('.*?([a-z]+)-([a-z]+) ([^ ]+)$', re.I)
+parser_re = re.compile('.*?([a-z]+)-([a-z]+) (.+)$', re.I)
 
 
 class OnlineDictionaryProcessor(OnlineProcessor):