Skip to content

Commit 1ff22d2

Browse files
author
Guillaume Chau
committed
fix(task): keep double quotes in script command
1 parent 658084b commit 1ff22d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@vue/cli-ui/apollo-server/util/parse-args.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ exports.parseArgs = function (args) {
99
for (const part of parts) {
1010
const l = part.length
1111
if (!arg && part.charAt(0) === '"') {
12-
arg = part.substr(1)
12+
arg = part
1313
} else if (part.charAt(l - 1) === '"' && (
1414
l === 1 || part.charAt(l - 2) !== '\\'
1515
)) {
16-
arg += args.charAt(index - 1) + part.substr(0, l - 1)
16+
arg += args.charAt(index - 1) + part.substr(0, l)
1717
result.push(arg)
1818
arg = null
1919
} else if (arg) {

0 commit comments

Comments
 (0)