From f0037e5ef6bb118dbcd6e26497014b97436888d6 Mon Sep 17 00:00:00 2001 From: wujunwei Date: Fri, 26 Aug 2022 17:53:31 +0800 Subject: [PATCH] fix: add cases.NoLower option for we can get same effect to strings.Title Signed-off-by: wujunwei --- cmd/helm/docs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/docs.go b/cmd/helm/docs.go index 26fc91446..523a96022 100644 --- a/cmd/helm/docs.go +++ b/cmd/helm/docs.go @@ -86,7 +86,7 @@ func (o *docsOptions) run(out io.Writer) error { hdrFunc := func(filename string) string { base := filepath.Base(filename) name := strings.TrimSuffix(base, path.Ext(base)) - title := cases.Title(language.Und).String(strings.Replace(name, "_", " ", -1)) + title := cases.Title(language.Und, cases.NoLower).String(strings.Replace(name, "_", " ", -1)) return fmt.Sprintf("---\ntitle: \"%s\"\n---\n\n", title) }