From 6c9ded301c1ce520913176971e8d4818a254df3d Mon Sep 17 00:00:00 2001 From: shylinux Date: Fri, 11 Aug 2023 18:24:00 +0800 Subject: [PATCH] add some --- lib/page.js | 1 + plugin/story/json.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/page.js b/lib/page.js index 141acce9..0265d554 100644 --- a/lib/page.js +++ b/lib/page.js @@ -222,6 +222,7 @@ Volcanos("page", { text = text.replace(/\033\[33m/g, "") text = text.replace(/\033\[34m/g, "") text = text.replace(/\033\[36m/g, "") + text = text.replace(/\033\[37m/g, "") text = text.replace(/\033\[34;1m/g, "") text = text.replace(/\033\[37;1m/g, "") text = text.replace(/\033\[1m/g, "") diff --git a/plugin/story/json.js b/plugin/story/json.js index 04d7a97d..077c051b 100644 --- a/plugin/story/json.js +++ b/plugin/story/json.js @@ -1,4 +1,5 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.onmotion.clear(can, target) + can.onappend.table(can, msg) can.onappend.style(can, nfs.JSON, can._output), can.onimport.show(can, can.base.Obj(msg.Result(), {}), target) }, show: function(can, data, target) {