mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-19 18:25:58 +08:00
fix: null body case (#129)
This commit is contained in:
@@ -10,7 +10,7 @@ export const dealRandomAssignees = (assignees: string, randomTo: string | void):
|
||||
};
|
||||
|
||||
export const matchKeyword = (content: string = '', keywords: string[]): boolean => {
|
||||
return !!keywords.find(item => content.toLowerCase().includes(item));
|
||||
return !!keywords.find(item => content?.toLowerCase().includes(item));
|
||||
};
|
||||
|
||||
export const checkDuplicate = (body: string | void): boolean => {
|
||||
|
Reference in New Issue
Block a user