Pre Merge pull request !79 from just2333/N/A

This commit is contained in:
just2333 2023-08-14 04:11:56 +00:00 committed by Gitee
commit e52de129f7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 1 deletions

View File

@ -395,7 +395,8 @@ export class add extends plugin {
let num = 0
if (isNaN(keyWord)) {
num = keyWord.trim().match(/[0-9]+/g)[0]
if(keyWord.trim().match(/[0-9]+/g).length>0){
num = keyWord.trim().match(/[0-9]+/g)[0]}
if (!isNaN(num) && !textArr[this.group_id].has(keyWord) && !textArr[this.e.bot.uin].has(keyWord)) {
keyWord = lodash.trimEnd(keyWord, num).trim()