From 58514ec5cf368ff9fb2b01643a2e3d4ddfbc2907 Mon Sep 17 00:00:00 2001 From: fallenbagel <98979876+fallenbagel@users.noreply.github.com> Date: Thu, 2 Apr 2026 16:39:37 +0800 Subject: [PATCH] ci(pr-validation): make checklist box detection case-insensitive (#2802) --- bin/check-pr-template.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/check-pr-template.mjs b/bin/check-pr-template.mjs index ff403336e..a34bf2d07 100644 --- a/bin/check-pr-template.mjs +++ b/bin/check-pr-template.mjs @@ -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) {