Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Update src/handlers/comment/handlers/comment-incentive.ts
Browse files Browse the repository at this point in the history
Co-authored-by: whilefoo <[email protected]>
  • Loading branch information
me505 and whilefoo authored Oct 16, 2023
1 parent 48510f1 commit 44c5ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/comment/handlers/comment-incentive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 44c5ccb

Please sign in to comment.