diff --git a/src/handlers/comment/handlers/comment-incentive.ts b/src/handlers/comment/handlers/comment-incentive.ts index abb1fb85e..8483276c6 100644 --- a/src/handlers/comment/handlers/comment-incentive.ts +++ b/src/handlers/comment/handlers/comment-incentive.ts @@ -13,7 +13,7 @@ export const commentIncentive = async (body: string) => { logger.info(`Skipping '/comment-incentive' because of no issue instance`); return `Skipping '/comment-incentive' because of no issue instance`; } - const toggle = (body.includes("true") || body.includes("false")) && body.match(/@(\w+)/g); + const toggle = (body.includes("true") || body.includes("false")) && body.match(/@([\w-]+)/g); if (!toggle) { return `invalid syntax for /comment-incentive \n usage /comment-incentive @user @user1... true|false \n ex /comment-incentive @user true`; } else {