Skip to content

Commit 2032aec

Browse files
committed
fix lint
1 parent b921f9f commit 2032aec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/highlight/highlight.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"code.gitea.io/gitea/modules/analyze"
1919
"code.gitea.io/gitea/modules/log"
2020
"code.gitea.io/gitea/modules/setting"
21+
"code.gitea.io/gitea/modules/util"
2122

2223
"github.com/alecthomas/chroma/v2"
2324
"github.com/alecthomas/chroma/v2/formatters/html"
@@ -223,5 +224,5 @@ func formatLexerName(name string) string {
223224
return "Plaintext"
224225
}
225226

226-
return strings.Title(name)
227+
return util.ToTitleCase(name)
227228
}

0 commit comments

Comments
 (0)