diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2020-11-03 15:12:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-03 15:12:25 +0100 |
| commit | 1b42d42695070f4a93f4df1605dcdff70f4d4d10 (patch) | |
| tree | ea3f71e8c1553972f4262febb85b9a5aec893f6b /searx/engines/command.py | |
| parent | 9c3382d12afa22fcd63c84c0d1a2b506d043fab4 (diff) | |
| parent | e28b56e2620730138045f58ca76c8b99ee957251 (diff) | |
Merge pull request #2290 from dalf/fix-misc
Various bug fixes
Diffstat (limited to 'searx/engines/command.py')
| -rw-r--r-- | searx/engines/command.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/command.py b/searx/engines/command.py index b9e672ffa..1b73861f7 100644 --- a/searx/engines/command.py +++ b/searx/engines/command.py @@ -14,8 +14,8 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >. ''' +import re from os.path import expanduser, isabs, realpath, commonprefix -from re import MULTILINE, search as re_search from shlex import split as shlex_split from subprocess import Popen, PIPE from time import time @@ -59,7 +59,7 @@ def init(engine_settings): if 'parse_regex' in engine_settings: parse_regex = engine_settings['parse_regex'] for result_key, regex in parse_regex.items(): - _compiled_parse_regex[result_key] = re.compile(regex, flags=MULTILINE) + _compiled_parse_regex[result_key] = re.compile(regex, flags=re.MULTILINE) if 'delimiter' in engine_settings: delimiter = engine_settings['delimiter'] |