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.
1 parent f56da03 commit 2c75124Copy full SHA for 2c75124
‎security/test/test.mjs‎
@@ -69,8 +69,18 @@ function test(version, patched) {
69
70
for (const cve of cveMap) {
71
if(cve[1].versions.includes(version)) {
72
- const status = d.querySelector(`#CVE-${cve[0]} .cve__footer-status`).textContent;
73
- console.log(status);
+ const cveName = `CVE-${cve[0]}`
+ const status = d.querySelector(`#${cveName} .cve__footer-status`).textContent;
74
+
75
+ if(status.startsWith(`Can't`)) {
76
+ console.log(`${cveName.padEnd(14)} - ${status}`);
77
+ }
78
+ else {
79
+ console.log(status
80
+ .replace('CVE', `${cveName.padEnd(14)} - `)
81
+ );
82
83
84
}
85
86
0 commit comments