From abbdf2a13e093f4bc341b565f643027c7b2c17e5 Mon Sep 17 00:00:00 2001 From: bendo-eXX Date: Tue, 3 Mar 2026 15:30:26 +0100 Subject: [PATCH] fix(CSAF2.0): fix mandetoryTest_6_1_26 --- lib/mandatoryTests/mandatoryTest_6_1_26.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/mandatoryTests/mandatoryTest_6_1_26.js b/lib/mandatoryTests/mandatoryTest_6_1_26.js index 47f41b97..5f6feaec 100644 --- a/lib/mandatoryTests/mandatoryTest_6_1_26.js +++ b/lib/mandatoryTests/mandatoryTest_6_1_26.js @@ -21,6 +21,10 @@ export default function mandatoryTest_6_1_26(doc) { 'informationaladvisory', 'securityadvisory', 'vex', + 'csafsecurityincidentresponse', + 'csafinformationaladvisory', + 'csafsecurityadvisory', + 'csafvex', ] // Skip test if profile is not "CSAF Base" but one of the other profiles or matches exactly "csaf_base" @@ -40,7 +44,7 @@ export default function mandatoryTest_6_1_26(doc) { // Fail on name similarity if ( otherProfileValues.includes( - category.replace(/[_-\s]+/g, '').toLowerCase() + category.replaceAll(/[_\-\s]+/g, '').toLowerCase() ) ) { isValid = false