diff --git a/fun.go b/fun.go index 471f479..c1dc5ae 100644 --- a/fun.go +++ b/fun.go @@ -181,7 +181,11 @@ func obfusbreak(s string) string { s = strings.Replace(s, "\n", "
", -1) s = re_mentions.ReplaceAllStringFunc(s, func(m string) string { - return fmt.Sprintf(`%s`, html.EscapeString(gofish(m)), + where := gofish(m) + if where == "" { + return m + } + return fmt.Sprintf(`%s`, html.EscapeString(where), html.EscapeString(m)) }) return s