mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-10-14 07:43:46 +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 => {
|
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 => {
|
export const checkDuplicate = (body: string | void): boolean => {
|
||||||
|
Reference in New Issue
Block a user