Skip to content

Commit

Permalink
Fix bug with matching
Browse files Browse the repository at this point in the history
  • Loading branch information
dddlr committed Jul 16, 2024
1 parent 4b9bbc0 commit 220a881
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/task-checklist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const run = () => {
console.log('---');
}

const matches = [...body.matchAll(INCOMPLETE_TASKS_REGEX)].map((match) => match[1]);
const matches = [...bodyWithoutDisables.matchAll(INCOMPLETE_TASKS_REGEX)].map(
(match) => match[1]
);

if (!matches.length) {
console.log('No tasks marked as incomplete. Great work!');
Expand Down

0 comments on commit 220a881

Please sign in to comment.