mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-26 23:09:28 +00:00
Changed EscapePound function with string replace function
This commit is contained in:
parent
5ec8ef0230
commit
9a43fcb61c
|
@ -97,7 +97,7 @@ func NewFuncMap() []template.FuncMap {
|
||||||
"ActionContent2Commits": ActionContent2Commits,
|
"ActionContent2Commits": ActionContent2Commits,
|
||||||
"ToUtf8": ToUtf8,
|
"ToUtf8": ToUtf8,
|
||||||
"EscapePound": func(str string) string {
|
"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,
|
"RenderCommitMessage": RenderCommitMessage,
|
||||||
"ThemeColorMetaTag": func() string {
|
"ThemeColorMetaTag": func() string {
|
||||||
|
|
Loading…
Reference in a new issue