There was an error while loading. Please reload this page.
SEI CERT C++
1 parent 49108bb commit 9fccd71Copy full SHA for 9fccd71
1 file changed
src/scripts/custom.js
@@ -77,6 +77,7 @@ const createDataTable = async () => {
77
{ 'label': 'CWE', 'searchValue': 'cwe' },
78
{ 'label': 'ISO/IEC 24772-8', 'searchValue': 'iso' },
79
{ 'label': 'SEI CERT C', 'searchValue': 'sei' },
80
+ { 'label': 'SEI CERT C++', 'searchValue': 'sei-cpp' },
81
].map(({ label, searchValue }) => ({
82
'text': label,
83
'attr': {
@@ -90,8 +91,9 @@ const createDataTable = async () => {
90
91
// CWE), show only rows where the corresponding column is
92
// non-empty. Otherwise, filter by category using an exact match
93
// in column 2
- if (['cwe', 'iso', 'sei'].includes(searchValue)) {
94
- let columnIdx = {'cwe': 3, 'iso': 4, 'sei': 5}[searchValue];
+ if (['cwe', 'iso', 'sei', 'sei-cpp'].includes(searchValue)) {
95
+ let columnIdx =
96
+ { 'cwe': 3, 'iso': 4, 'sei': 5, 'sei-cpp': 6 }[searchValue];
97
dataTable.column(columnIdx).search(
98
'^(?!\\s*$).+', /* regex = */true, /* smart = */ false);
99
} else {
0 commit comments