mirror of
https://github.com/seerr-team/seerr.git
synced 2026-04-17 13:58:24 -04:00
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 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) {
|
||||
|
||||
Reference in New Issue
Block a user