go fmt is a harsh mistress

This commit is contained in:
Ted Unangst 2019-04-16 20:33:01 -04:00
parent d542796944
commit 562d4e34c1
1 changed files with 1 additions and 1 deletions

2
fun.go
View File

@ -188,7 +188,7 @@ func obfusbreak(s string) string {
if where == "" { if where == "" {
return m return m
} }
who := m[0:1 + strings.IndexByte(m[1:], '@')] who := m[0 : 1+strings.IndexByte(m[1:], '@')]
return fmt.Sprintf(`<span class="h-card"><a class="u-url mention" href="%s">%s</a></span>`, return fmt.Sprintf(`<span class="h-card"><a class="u-url mention" href="%s">%s</a></span>`,
html.EscapeString(where), html.EscapeString(who)) html.EscapeString(where), html.EscapeString(who))
}) })