ci(pr-validation): make checklist box detection case-insensitive (#2802)

This commit is contained in:
fallenbagel
2026-04-02 16:39:37 +08:00
committed by GitHub
parent 5bbdc52728
commit 58514ec5cf

View File

@@ -58,7 +58,7 @@ if (!testingContent) {
const checklistMatch = body.match(/## Checklist:\s*\n([\s\S]*?)$/);
const checklistContent = checklistMatch ? checklistMatch[1] : '';
const totalBoxes = (checklistContent.match(/- \[[ x]\]/g) || []).length;
const totalBoxes = (checklistContent.match(/- \[[ x]\]/gi) || []).length;
const checkedBoxes = (checklistContent.match(/- \[x\]/gi) || []).length;
if (totalBoxes === 0) {