We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
validate-form
1 parent 57ef8f9 commit 66f015dCopy full SHA for 66f015d
scripts/validate-form/main.js
@@ -4,7 +4,7 @@ const RE_DEPENDENCIES = /Dependencies\s+[/a-z]+\s*:\s/gm
4
const RE_CHECKLIST = /#{3}\s+Checklist\s+(?:^-\s+\[x]\s+.+?(?:\n|\r\n|$)){2}/gm
5
6
function bugReportBody(creator, content, hash) {
7
- if (content.includes(` (${hash} `) && RE_CHECKLIST.test(content)) {
+ if (RE_CHECKLIST.test(content) && new RegExp(` \\(${hash}[a-z]? `).test(content)) {
8
return null
9
}
10
0 commit comments