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{}