Don't be greedy.
This commit is contained in:
@@ -40,7 +40,7 @@ function _split(value) {
|
||||
inQuote = !inQuote;
|
||||
}
|
||||
if (!inQuote && value.charAt(i) === ' ') {
|
||||
pieces.push(value.substring(previous, i).match(/^"?(.*)"?$/)[1]);
|
||||
pieces.push(value.substring(previous, i).match(/^"?(.+?)"?$/)[1]);
|
||||
previous = i + 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user