From 54a97e10431c1cdae910d3b37074a63eda7100fc Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 25 Nov 2025 12:51:08 +0100 Subject: [mod] replace js_variable_to_python by js_obj_str_to_python (#2792) (#5477) This patch is based on PR #2792 (old PR from 2023) - js_obj_str_to_python handle more cases - bring tests from chompjs .. - comment out tests do not pass The tests from chompjs give some overview of what is not implemented. Signed-off-by: Markus Heiser --- searx/engines/ask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/engines/ask.py') diff --git a/searx/engines/ask.py b/searx/engines/ask.py index aeaf6136a..ca1a2110d 100644 --- a/searx/engines/ask.py +++ b/searx/engines/ask.py @@ -50,7 +50,7 @@ def response(resp): pos = script.index(end_tag) + len(end_tag) - 1 script = script[:pos] - json_resp = utils.js_variable_to_python(script) + json_resp = utils.js_obj_str_to_python(script) results = [] -- cgit v1.2.3