From 7572c61ac948b41350070c8a57f2613a874cd915 Mon Sep 17 00:00:00 2001 From: Yeger Date: Sat, 26 Oct 2024 17:38:36 +0300 Subject: [PATCH] Lint Remove spaces in empty lines --- searx/plugins/calculator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/plugins/calculator.py b/searx/plugins/calculator.py index 0295104d4..dd56ac787 100644 --- a/searx/plugins/calculator.py +++ b/searx/plugins/calculator.py @@ -93,7 +93,7 @@ def post_search(_request, search): return True query = search.search_query.query - + # in order to avoid DoS attacks with long expressions, ignore long expressions if len(query) > 100: return True @@ -105,7 +105,7 @@ def post_search(_request, search): if not locale: # use some default local in case it is not configured locale = babel.Locale.parse("en-US", sep='-') - + # parse the number system in a localized way def _decimal(match: re.Match) -> str: val = match.string[match.start() : match.end()]