Skip to content

Commit c08201b

Browse files
removed colon to avoid GitHub parse error
1 parent fc5e843 commit c08201b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/generate-report.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const parse = (object: reportTypes.zapObject): reportTypes.report => {
2222
helpUri: `https://www.zaproxy.org/docs/alerts/${alert.alertRef}`,
2323
defaultConfiguration: {level: severity},
2424
properties: {
25-
tags: [ `external/cwe/cwe-${alert.cweid}`]
25+
tags: [`external/cwe/cwe-${alert.cweid}`]
2626
}
2727
}
2828
})
@@ -69,6 +69,7 @@ const parse = (object: reportTypes.zapObject): reportTypes.report => {
6969
uri: instance.uri
7070
.replace(/(^\w+:|^)\/\//, '')
7171
.replace(/\/$/, '')
72+
.replace(/:/g, '')
7273
},
7374
region: {
7475
startLine: 1

0 commit comments

Comments
 (0)