aboutsummaryrefslogtreecommitdiff
path: root/internal/template/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/template/template.go')
-rw-r--r--internal/template/template.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/template/template.go b/internal/template/template.go
index d34e44f6..faf27495 100644
--- a/internal/template/template.go
+++ b/internal/template/template.go
@@ -256,6 +256,7 @@ func ActionContent2Commits(act Actioner) *db.PushCommits {
return push
}
+// TODO(unknwon): Use url.Escape.
func EscapePound(str string) string {
return strings.NewReplacer("%", "%25", "#", "%23", " ", "%20", "?", "%3F").Replace(str)
}