@nestim/koishi-plugin-qqgm-webui 0.2.21 → 0.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -115,7 +115,7 @@ function apply(ctx, config) {
115
115
  ctx.server.get(`${route}/api/health`, (koa) => json(koa, {
116
116
  ok: true,
117
117
  name,
118
- version: '0.2.21',
118
+ version: '0.2.22',
119
119
  route,
120
120
  tokenRequired: !!config.token,
121
121
  remoteAllowed: !!config.allowRemote,
@@ -19,7 +19,7 @@ function loadMainPlugin() {
19
19
 
20
20
  function humanLabel(key, description) {
21
21
  const text = String(description || '').replace(/\s+/g, ' ').trim();
22
- const first = text.split(/[::((]/)[0].trim();
22
+ const first = text.split(/[::((,,。;;]/)[0].trim();
23
23
  if (first && first.length >= 2 && first.length <= 28) return first;
24
24
  return key;
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestim/koishi-plugin-qqgm-webui",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "description": "QQGM 附属 WebUI:插件识别、监控看板、记忆库、配置与日志。",
5
5
  "main": "index.js",
6
6
  "files": [