Skip to content

Commit

Permalink
fix(asff): replace slice with substr (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
knqyf263 authored Jun 10, 2021
1 parent 3a94b73 commit 2a08969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/asff.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{- end -}}
{{- $description := .Description -}}
{{- if gt (len $description ) 1021 -}}
{{- $description = (slice $description 0 1021) | printf "%v .." -}}
{{- $description = (substr 0 1021 $description) | printf "%v .." -}}
{{- end}}
{
"SchemaVersion": "2018-10-08",
Expand Down

0 comments on commit 2a08969

Please sign in to comment.