Skip to content

Commit 66f015d

Browse files
committed
ci: support 8-character short hash in validate-form workflow
1 parent 57ef8f9 commit 66f015d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/validate-form/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const RE_DEPENDENCIES = /Dependencies\s+[/a-z]+\s*:\s/gm
44
const RE_CHECKLIST = /#{3}\s+Checklist\s+(?:^-\s+\[x]\s+.+?(?:\n|\r\n|$)){2}/gm
55

66
function bugReportBody(creator, content, hash) {
7-
if (content.includes(` (${hash} `) && RE_CHECKLIST.test(content)) {
7+
if (RE_CHECKLIST.test(content) && new RegExp(` \\(${hash}[a-z]? `).test(content)) {
88
return null
99
}
1010

0 commit comments

Comments
 (0)