go fmt is a harsh mistress
This commit is contained in:
parent
d542796944
commit
562d4e34c1
2
fun.go
2
fun.go
|
@ -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))
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue