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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/template/template.go b/internal/template/template.go
index dcb56639..2ed0315c 100644
--- a/internal/template/template.go
+++ b/internal/template/template.go
@@ -146,7 +146,7 @@ func Str2HTML(raw string) template.HTML {
// NewLine2br simply replaces "\n" to "<br>".
func NewLine2br(raw string) string {
- return strings.Replace(raw, "\n", "<br>", -1)
+ return strings.ReplaceAll(raw, "\n", "<br>")
}
func Sha1(str string) string {