From 5894af97837e1dc5678e0ea72f93ffe21fb33923 Mon Sep 17 00:00:00 2001 From: luxtiasco <79135227+luxtiasco@users.noreply.github.com> Date: Wed, 22 Feb 2023 22:32:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20webapp.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- searx/webapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index 9b6af9acc..449f5cf9e 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -983,13 +983,13 @@ function replaceUrlWithFootnote(text) { } function beautify(text) { -new_text=text +new_text=text.replaceAll("(","(").replaceAll(")",")") for(let i=prompt.url_pair.length;i>=0;--i) { new_text = new_text.replaceAll("(url"+String(i),"(https://url"+String(i) ) new_text = new_text.replaceAll("(链接"+String(i),"(https://url"+String(i) ) } - new_text = replaceUrlWithFootnote(new_text.replaceAll("(","(").replaceAll(")",")")) + new_text = replaceUrlWithFootnote(new_text) for(let i=prompt.url_pair.length;i>=0;--i) {