mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-19 18:25:58 +08:00
@@ -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));
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user