From a9db99d6b96c3bc34597c865a9a2a299b33069c9 Mon Sep 17 00:00:00 2001 From: ericchiang Date: Sun, 28 Sep 2014 17:56:17 -0400 Subject: [PATCH] small bug fixed --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 1487096..c37365c 100644 --- a/main.go +++ b/main.go @@ -128,7 +128,7 @@ func QuoteSplit(input string) []string { switch c { case ' ': if !inQuote { - if last < i-1 { + if last < i { split = append(split, input[last:i]) } last = i + 1