From 2a08969ddcf500f7840eedb117a40b8c6c18f41e Mon Sep 17 00:00:00 2001 From: Teppei Fukuda Date: Thu, 10 Jun 2021 16:19:28 +0300 Subject: [PATCH] fix(asff): replace slice with substr (#1058) --- contrib/asff.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/asff.tpl b/contrib/asff.tpl index 5979c1323173..4075c1909e99 100644 --- a/contrib/asff.tpl +++ b/contrib/asff.tpl @@ -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",