Don't be greedy.
This commit is contained in:
parent
b420758104
commit
17b5c8414c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user