From 4fcdccf48298d6082f4a78c7b7c51a5d94cc286f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=B6=E5=A3=AB=E6=B6=B5?= <630892807@qq.com>
Date: Mon, 12 Oct 2020 22:09:17 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BD=AC=E4=B9=89=E8=B6=85?=
=?UTF-8?q?=E9=93=BE=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
static/html/setting_left.html | 2 +-
static/js/functions.js | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/static/html/setting_left.html b/static/html/setting_left.html
index 58092b6..327ec96 100644
--- a/static/html/setting_left.html
+++ b/static/html/setting_left.html
@@ -37,7 +37,7 @@
设置mysql
配置参数
IP黑名单
- 设置网页部署
+ 网页部署
diff --git a/static/js/functions.js b/static/js/functions.js
index fb9c50c..091af53 100644
--- a/static/js/functions.js
+++ b/static/js/functions.js
@@ -77,6 +77,11 @@ function replaceContent (content) {// 转义聊天内容中的特殊字符
var src = face.replace(/^img\[/g, '').replace(/\]/g, '');;
return '';
})
+ .replace(/\[([^\s\[\]]+?)\]+link\[([^\s\[\]]+?)\]/g, function (face) { // 转义超链接
+ var text = face.replace(/link\[.*?\]/g, '').replace(/\[|\]/g, '');
+ var src = face.replace(/^\[([^\s\[\]]+?)\]+link\[/g, '').replace(/\]/g, '');
+ return '【'+text+'】';
+ })
.replace(html(), '\<$1 $2\>').replace(html('/'), '\$1\>') // 转移HTML代码
.replace(/\n/g, '
') // 转义换行