Skip to content

Commit

Permalink
Modify the regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankXie05 committed Jul 30, 2024
1 parent 38fbb56 commit 383dcd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
const prNumber = context.payload.pull_request.number;
const prBody = context.payload.pull_request.body;
const commentRegex = /<!--.*-->/;
const commentRegex = /<!--[\s\S]*?-->/;
const hasComment = commentRegex.test(prBody);
if (hasComment) {
Expand Down

0 comments on commit 383dcd3

Please sign in to comment.