mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
更新 webapp.py
This commit is contained in:
parent
a450f76916
commit
5894af9783
1 changed files with 2 additions and 2 deletions
|
@ -983,13 +983,13 @@ function replaceUrlWithFootnote(text) {
|
||||||
}
|
}
|
||||||
function beautify(text)
|
function beautify(text)
|
||||||
{
|
{
|
||||||
new_text=text
|
new_text=text.replaceAll("(","(").replaceAll(")",")")
|
||||||
for(let i=prompt.url_pair.length;i>=0;--i)
|
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("(url"+String(i),"(https://url"+String(i) )
|
||||||
new_text = new_text.replaceAll("(链接"+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)
|
for(let i=prompt.url_pair.length;i>=0;--i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue