From 57ea496c887db06a4f797c48f32e4142ab0bb6a3 Mon Sep 17 00:00:00 2001 From: luxtiasco <79135227+luxtiasco@users.noreply.github.com> Date: Mon, 20 Feb 2023 01:46:00 +0800 Subject: [PATCH] Update webapp.py --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 56d944fd9..f34e17a18 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -742,7 +742,7 @@ def search(): gpt = gpt.replace(urls,url_pair[urls]) if gpt and gpt!="": for i in range(1,10): - gpt.replace("["+str(i)+"]","[^"+str(i)+"]") + gpt = gpt.replace("["+str(i)+"] http","[^"+str(i)+"]: http").replace("["+str(i)+"]http","[^"+str(i)+"]: http").replace("["+str(i)+"]","[^"+str(i)+"]") gpt = markdown.markdown( gpt , extensions=['footnotes']) for urls in url_pair.keys(): gpt = gpt.replace("#fn:"+urls.replace("https://url",""),url_pair[urls])