From 247e01c20a142a9b498a6dc3ce608a51f8d33f96 Mon Sep 17 00:00:00 2001 From: cx uname Date: Tue, 24 Dec 2013 13:20:34 +0400 Subject: [PATCH] quotes --- main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 9bb1c13..d1e59bc 100644 --- a/main.go +++ b/main.go @@ -187,9 +187,10 @@ func GetCommand(body, from, dir string) string { } func Strip(s, s2 *string) { - r, _ := regexp.Compile("(`|\\$|\"|'|\\.\\.)") //strip - *s = r.ReplaceAllString(*s, "") - *s2 = r.ReplaceAllString(*s2, "") + strip, _ := regexp.Compile("(`|\\$|\\.\\.)") + q, _ := regexp.Compile("(\"|')") + *s = q.ReplaceAllString(strip.ReplaceAllString(*s, ""),"“") + *s2 = q.ReplaceAllString(strip.ReplaceAllString(*s2, ""),"“") } func GetNick(s string) string {