fix: body null (#123)

* fix: body null

* docs: update changelog
This commit is contained in:
xrkffgg
2022-10-19 21:10:24 +08:00
committed by GitHub
parent 7f09991212
commit 1cb0eedfea
4 changed files with 9 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ export const dealRandomAssignees = (assignees: string, randomTo: string | void):
return arr;
};
export const matchKeyword = (content: string, keywords: string[]): boolean => {
export const matchKeyword = (content: string = '', keywords: string[]): boolean => {
return !!keywords.find(item => content.toLowerCase().includes(item));
};