Skip to content

Commit

Permalink
small bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ericchiang committed Sep 28, 2014
1 parent 4e31291 commit a9db99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9db99d

Please sign in to comment.