ci(pr-validation): make checklist box detection case-insensitive (#2802)
This commit is contained in:
@@ -58,7 +58,7 @@ if (!testingContent) {
|
|||||||
const checklistMatch = body.match(/## Checklist:\s*\n([\s\S]*?)$/);
|
const checklistMatch = body.match(/## Checklist:\s*\n([\s\S]*?)$/);
|
||||||
const checklistContent = checklistMatch ? checklistMatch[1] : '';
|
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;
|
const checkedBoxes = (checklistContent.match(/- \[x\]/gi) || []).length;
|
||||||
|
|
||||||
if (totalBoxes === 0) {
|
if (totalBoxes === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user