🐞 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

@@ -7,6 +7,12 @@
🛠 refactor
-->
## v3.0.1
`2022.08.01`
- 🐞 fix: check will undefined.
## v3.0.0
`2022.02.15`

2
dist/index.js vendored
View File

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

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);
}