Skip to content

Commit 42964f9

Browse files
feat(CSAF2.1): #287 add mandatory test 6.1.42 - change variable name
1 parent 6bc2640 commit 42964f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

csaf_2_1/mandatoryTests/mandatoryTest_6_1_26.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const profileValues = [
3434
'csaf_withdrawn',
3535
'csaf_superseded',
3636
]
37-
const otherProfileValues = [
37+
const prohibitedDocumentCategoryNames = [
3838
'securityincidentresponse',
3939
'informationaladvisory',
4040
'securityadvisory',
@@ -82,7 +82,9 @@ export function mandatoryTest_6_1_26(doc) {
8282

8383
// Fail on name similarity
8484
if (
85-
otherProfileValues.includes(category.replace(/[_-\s]+/g, '').toLowerCase())
85+
prohibitedDocumentCategoryNames.includes(
86+
category.replace(/[_-\s]+/g, '').toLowerCase()
87+
)
8688
) {
8789
ctx.isValid = false
8890
ctx.errors.push({

0 commit comments

Comments
 (0)