Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 3e529b3

Browse files
committed
#33 Remove duplicated dash
1 parent 112b45f commit 3e529b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hooks/declarative-subsequent-scans/hook.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ test("should create subsequent scans for open HTTPS ports (NMAP findings)", () =
7272
expect(cascadedScans).toMatchInlineSnapshot(`
7373
Array [
7474
Object {
75-
"name": "sslyze-foobar.com-tls-scans-",
75+
"name": "sslyze-foobar.com-tls-scans",
7676
"parameters": Array [
7777
"--regular",
7878
"foobar.com",
@@ -129,7 +129,7 @@ test("should not try to do magic to the scan name if its something random", () =
129129
expect(cascadedScans).toMatchInlineSnapshot(`
130130
Array [
131131
Object {
132-
"name": "foobar.com-tls-scans-",
132+
"name": "foobar.com-tls-scans",
133133
"parameters": Array [
134134
"--regular",
135135
"foobar.com",

hooks/declarative-subsequent-scans/hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,5 @@ function generateCascadingScanName(
120120
cascadingRule.spec.scanSpec.scanType
121121
);
122122
}
123-
return `${namePrefix}-${cascadingRule.metadata.name}-`;
123+
return `${namePrefix}-${cascadingRule.metadata.name}`;
124124
}

0 commit comments

Comments
 (0)