Skip to content

Commit

Permalink
feat(templates): rm string conversion (projectdiscovery#6016)
Browse files Browse the repository at this point in the history
Signed-off-by: Dwi Siswanto <git@dw1.io>
  • Loading branch information
dwisiswant0 authored Jan 30, 2025
1 parent 58ae87c commit 265051f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/templates/tag_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ func tryCollectConditionsMatchinfo(template *Template) map[string]interface{} {
// attempts to unwrap fields to their basic types
// mapping must be manual because of various abstraction layers, custom marshaling and forceful validation
parameters := map[string]interface{}{
"id": strings.ToLower(template.ID),
"name": strings.ToLower(template.Info.Name),
"description": strings.ToLower(template.Info.Description),
"id": template.ID,
"name": template.Info.Name,
"description": template.Info.Description,
"tags": template.Info.Tags.ToSlice(),
"authors": template.Info.Authors.ToSlice(),
"severity": template.Info.SeverityHolder.Severity.String(),
Expand Down

0 comments on commit 265051f

Please sign in to comment.