Update webapp.py

This commit is contained in:
Joseph Cheung 2023-02-23 13:08:04 +08:00
parent 1fbeb84227
commit 944c5c841c

View file

@ -989,7 +989,7 @@ function replaceUrlWithFootnote(text) {
} }
function beautify(text) function beautify(text)
{ {
new_text=text.replaceAll("","(").replaceAll("",")").replaceAll(", ",",").replaceAll("链接:",",") new_text=text.replaceAll("","(").replaceAll("",")").replaceAll(", ",",").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) )