update lib/plugins/loader.js.

匹配了中文字符*和汉字米作为星铁命令容错

Signed-off-by: 长楠 <2388182620@qq.com>
This commit is contained in:
长楠 2023-05-30 06:26:06 +00:00 committed by Gitee
parent fb41a3e157
commit e245f8d6b3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class PluginsLoader {
this.watcher = {} this.watcher = {}
/** 星铁命令前缀 */ /** 星铁命令前缀 */
this.srReg = /^#?(\*|星铁|星轨|穹轨|星穹|崩铁|星穹铁道|崩坏星穹铁道|铁道)+/ this.srReg = /^#?(米||\*)?(星铁|星轨|穹轨|星穹|崩铁|星穹铁道|崩坏星穹铁道|铁道)+/
} }
/** /**