Pre Merge pull request !77 from Zyy955/N/A

This commit is contained in:
Zyy955 2023-08-13 22:58:40 +00:00 committed by Gitee
commit e62a350a01
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

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