diff --git a/cointop/search.go b/cointop/search.go index fd455ff..dd06844 100644 --- a/cointop/search.go +++ b/cointop/search.go @@ -66,7 +66,7 @@ func (ct *Cointop) DoSearch() error { if n == 0 { return nil } - q := string(b) + q := strings.TrimSpace(string(b[:n])) // remove slash regex := regexp.MustCompile(`/(.*)`) matches := regex.FindStringSubmatch(q)