Skip to content

Commit

Permalink
Improve additional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelGirodon committed Oct 23, 2024
1 parent defbc4b commit ef44a31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ export async function main() {
// Other fields
finding.product = finding?.related_fields?.test?.engagement?.product ?? { id: -1, name: "" };
finding.engagement = finding?.related_fields?.test?.engagement ?? { id: -1, name: "", version: "" };
finding.tool = finding.related_fields.test.title ||
finding.related_fields.test.test_type.name.replace(/Scan/g, "").trim();
finding.tool = finding.related_fields.test.test_type.name.replace(/ Scan($| )/g, "$1").trim();
finding.occurrences = finding.nb_occurences || 1;
finding.origin = finding.tags.find(t => originTags.includes(t)) ?? "";
finding.sp_responsibility = finding.tags.includes(serviceProviderTag);
Expand Down

0 comments on commit ef44a31

Please sign in to comment.