From 8988b467390660ee571e5f217b33a35f4b5f071d Mon Sep 17 00:00:00 2001 From: bassg0navy Date: Sat, 29 Nov 2025 13:15:49 -0600 Subject: [PATCH] refactor: abbreviate and move up comment Signed-off-by: bassg0navy --- pkg/registry/chart.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/registry/chart.go b/pkg/registry/chart.go index 46a25d62e..634fbfe12 100644 --- a/pkg/registry/chart.go +++ b/pkg/registry/chart.go @@ -67,6 +67,8 @@ annotations: return ociAnnotations } +// Non-ASCII characters in annotation values are escaped +// to ensure compatibility with registries that strictly follow OCI spec func escapeNonASCII(s string) string { var result strings.Builder result.Grow(len(s)) // Pre-allocate for efficiency @@ -83,8 +85,6 @@ func escapeNonASCII(s string) string { } // generateChartOCIAnnotations will generate OCI annotations from the provided chart -// Non-ASCII characters in annotation values are escaped as \uXXXX sequences -// to ensure compatibility with registries that strictly follow OCI spec recommendations. func generateChartOCIAnnotations(meta *chart.Metadata, creationTime string) map[string]string { chartOCIAnnotations := map[string]string{}