SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] utils.js_variable_to_python - partial revert of 156d1eb8c (#5458)
Markus Heiser21a4622f23a2
diff --git a/searx/utils.py b/searx/utils.pyindex 079a99ae2..7e2f4d78f 100644--- a/searx/utils.py+++ b/searx/utils.py@@ -807,11 +807,6 @@ def js_variable_to_python(js_variable: str) -> str:s = _JS_DECIMAL_RE.sub(":0.", s)# replace the surogate character by colons = s.replace(chr(1), ':')- # replace single-quote followed by comma with double-quote and comma- # {"a": "\"12\"',"b": "13"}- # becomes- # {"a": "\"12\"","b": "13"}- s = s.replace("',", "\",")# load the JSON and return the resultreturn json.loads(s) # pyright: ignore[reportAny]