星铁命令适配中文星号

This commit is contained in:
Kokomi 2023-06-29 04:26:45 +08:00
parent 553dfda627
commit 5518e1b700
1 changed files with 1 additions and 1 deletions

View File

@ -369,7 +369,7 @@ class PluginsLoader {
for (let val of e.message) { for (let val of e.message) {
switch (val.type) { switch (val.type) {
case 'text': case 'text':
e.msg = (e.msg || '') + (val.text || '').replace(/^\s*[#井#]+\s*/, '#').replace(/^\s*[\\*※]+\s*/, '*').trim() e.msg = (e.msg || '') + (val.text || '').replace(/^\s*[#井#]+\s*/, '#').replace(/^\s*[\\*※]+\s*/, '*').trim()
break break
case 'image': case 'image':
if (!e.img) { if (!e.img) {