🐞 fix: check will undefined

This commit is contained in:
元凛
2022-08-01 11:23:18 +08:00
parent b9d9c9bdd8
commit 0e8eacd7fd
3 changed files with 8 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ export async function doCheckIssue() {
const bodyArr = bodyIncludes.split('/');
const keyword1 = dealStringToArr(bodyArr[0]);
const keyword2 = dealStringToArr(bodyArr[1]);
checkResult = keyword2.length
checkResult = keyword2 && keyword2.length
? matchKeyword(issue.body, keyword1) && matchKeyword(issue.body, keyword2)
: matchKeyword(issue.body, keyword1);
}