aboutsummaryrefslogtreecommitdiffstats
path: root/modules/templates
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-05-10 23:55:54 +0200
committerGitHub <noreply@github.com>2022-05-10 23:55:54 +0200
commit318f360252777c6eb819ab206a1f276fa4969f3a (patch)
tree7a73ede2df5b52be940dd9b4005137c1d5d53c04 /modules/templates
parent3c658dff233e791856496761325f5ebf787d7521 (diff)
downloadgitea-318f360252777c6eb819ab206a1f276fa4969f3a.tar.gz
gitea-318f360252777c6eb819ab206a1f276fa4969f3a.zip
Update go tool dependencies (#19676)
* Update go tool dependencies Updated all tool dependencies to latest tags, hoping CI will like it. * fix new lint errors * handle more strings.Title cases * remove lint skip
Diffstat (limited to 'modules/templates')
-rw-r--r--modules/templates/helper.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 682459d94a..1ee9cb00e0 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -52,7 +52,7 @@ var mailSubjectSplit = regexp.MustCompile(`(?m)^-{3,}[\s]*$`)
func NewFuncMap() []template.FuncMap {
return []template.FuncMap{map[string]interface{}{
"GoVer": func() string {
- return strings.Title(runtime.Version())
+ return util.ToTitleCase(runtime.Version())
},
"UseHTTPS": func() bool {
return strings.HasPrefix(setting.AppURL, "https")
@@ -398,7 +398,7 @@ func NewFuncMap() []template.FuncMap {
func NewTextFuncMap() []texttmpl.FuncMap {
return []texttmpl.FuncMap{map[string]interface{}{
"GoVer": func() string {
- return strings.Title(runtime.Version())
+ return util.ToTitleCase(runtime.Version())
},
"AppName": func() string {
return setting.AppName