Skip to content

Commit

Permalink
improve clean string (#72)
Browse files Browse the repository at this point in the history
* trim special characters from provided values
  • Loading branch information
josephbarnett authored Aug 13, 2024
1 parent be9bbb0 commit f8feee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cloudzero-agent/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Create chart name and version as used by the chart label.
*/}}
{{- define "cloudzero-agent.cleanString" -}}
{{- $input := . -}}
{{- $cleaned := trimAll "\n" $input -}}
{{- $cleaned := trimAll "\n\t\r\f\v ~`!@#$%^&*()[]{}_-+=|\\:;\"'<,>.?/" $input -}}
{{- $cleaned := trim $cleaned -}}
{{- $cleaned -}}
{{- end -}}
Expand Down

0 comments on commit f8feee4

Please sign in to comment.