Browse Source

Changed EscapePound function with string replace function

pull/2883/head
Nikko Miu 9 years ago
parent
commit
9a43fcb61c
  1. 2
      modules/template/template.go

2
modules/template/template.go

@ -97,7 +97,7 @@ func NewFuncMap() []template.FuncMap {
"ActionContent2Commits": ActionContent2Commits,
"ToUtf8": ToUtf8,
"EscapePound": func(str string) string {
return strings.Replace(strings.Replace(str, "%", "%25", -1), "#", "%23", -1)
return strings.NewReplacer("%", "%25", "#", "%23", " ", "%20").Replace(str)
},
"RenderCommitMessage": RenderCommitMessage,
"ThemeColorMetaTag": func() string {

Loading…
Cancel
Save