Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit 919b83f

Browse files
committed
Remove file ending
1 parent 84135ec commit 919b83f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ScannerExamples.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function ScannerExamples(props) {
3838
const node = data.examples.nodes[i];
3939
if (edge.node.relativeDirectory.includes(scanner)) {
4040
const target = data.examples.nodes[i].fields.scanTarget
41-
if (!targets.includes(target))
41+
if(!targets.includes(target))
4242
targets.push(target);
4343
examples.push(node);
4444
}
@@ -56,7 +56,7 @@ export default function ScannerExamples(props) {
5656
<TabList>
5757
{/* We are reversing to ensure that the scan.yaml is shown before the findings.yaml */}
5858
{examples.filter(example => example.fields.scanTarget === target).reverse().map((example, index) => (
59-
<Tab key={index}>{example.fields.fileName}</Tab>
59+
<Tab key={index}>{example.fields.fileName.split(".")[0]}</Tab>
6060
))}
6161
</TabList>
6262

0 commit comments

Comments
 (0)