summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-07-04 19:20:30 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-07-07 15:58:29 +0200
commit480476fdf35e17ed1b8f7a79f86f526b3c4f4531 (patch)
tree3d9956575db841d2a9816827f494a74e7428cb25 /searx
parentb5cceeb2f9997d3c6b460f0a1b1c691174e55c04 (diff)
downloadsearxng-480476fdf35e17ed1b8f7a79f86f526b3c4f4531.tar.gz
searxng-480476fdf35e17ed1b8f7a79f86f526b3c4f4531.zip
[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>
Diffstat (limited to 'searx')
-rw-r--r--searx/search/processors/online_dictionary.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/search/processors/online_dictionary.py b/searx/search/processors/online_dictionary.py
index 3e7f6ed59..77540de9a 100644
--- a/searx/search/processors/online_dictionary.py
+++ b/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):