diff --git a/scripts/validate-form/main.js b/scripts/validate-form/main.js index 45362ff2..fb1655c4 100644 --- a/scripts/validate-form/main.js +++ b/scripts/validate-form/main.js @@ -4,7 +4,7 @@ const RE_DEPENDENCIES = /Dependencies\s+[/a-z]+\s*:\s/gm const RE_CHECKLIST = /#{3}\s+Checklist\s+(?:^-\s+\[x]\s+.+?(?:\n|\r\n|$)){2}/gm function bugReportBody(creator, content, hash) { - if (content.includes(` (${hash} `) && RE_CHECKLIST.test(content)) { + if (RE_CHECKLIST.test(content) && new RegExp(` \\(${hash}[a-z]? `).test(content)) { return null }