From 28a165f1caaa71c3ec06bb8756a622dddbddf5bc Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Fri, 3 Apr 2020 03:03:52 -0400 Subject: not splitting usernames to insert zero-width space, but prepending usernames with it --- main.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index e92dfb5..5b8e0fb 100644 --- a/main.go +++ b/main.go @@ -163,16 +163,13 @@ func main() { split := strings.Split(bytestream.String(), "\n") var out bytes.Buffer + for i := 1; i < len(split); i++ { if split[i] == "" { continue } - tmp := split[i] - a := tmp[:2] - b := tmp[2:] - c := fmt.Sprintf("%s%s%s", a, ZWSP, b) - + c := fmt.Sprintf("%s%s", ZWSP, split[i]) out.WriteString(c + " ") } -- cgit 1.4.1-2-gfad0