1
0
mirror of https://github.com/ericchiang/pup synced 2024-11-24 08:58:08 +00:00

small bug fixed

This commit is contained in:
ericchiang 2014-09-28 17:56:17 -04:00
parent 4e31291cfc
commit a9db99d6b9

View File

@ -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