summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/server/cmds.go2
-rw-r--r--pkg/test/test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/server/cmds.go b/pkg/server/cmds.go
index 3ce7150..dbd7083 100644
--- a/pkg/server/cmds.go
+++ b/pkg/server/cmds.go
@@ -27,7 +27,7 @@ func newNode() *node {
}
func newCmd(f func(r *request), where string) {
- path := strings.Split(where, " ")
+ path := strings.Fields(where)
node := cmds
for _, name := range path {
diff --git a/pkg/test/test.go b/pkg/test/test.go
index 6d83ad0..e2ecfcb 100644
--- a/pkg/test/test.go
+++ b/pkg/test/test.go
@@ -77,7 +77,7 @@ func (e *env) newInstance() *Client {
func (c *Client) Send(format string, args ...interface{}) string {
s := fmt.Sprintf(format, args...)
- t := strings.Split(s, " ")
+ t := strings.Fields(s)
r, err := c.Client.Send(t)
if err != nil {