From 480476fdf35e17ed1b8f7a79f86f526b3c4f4531 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 4 Jul 2022 19:20:30 +0200 Subject: [PATCH] [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 --- searx/search/processors/online_dictionary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):