Skip to content

Commit fe4c1ac

Browse files
committed
preserve quotes surrounding fields in input list
Signed-off-by: CrazyMax <[email protected]>
1 parent c74574e commit fe4c1ac

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

__tests__/context.test.ts

+15
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,21 @@ describe('getCreateArgs', () => {
109109
'tls://foo:1234'
110110
]
111111
],
112+
[
113+
5,
114+
new Map<string, string>([
115+
['install', 'false'],
116+
['use', 'false'],
117+
['driver-opts', `"env.no_proxy=localhost,127.0.0.1,.mydomain"`],
118+
]),
119+
[
120+
'create',
121+
'--name', 'builder-9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d',
122+
'--driver', 'docker-container',
123+
'--driver-opt', '"env.no_proxy=localhost,127.0.0.1,.mydomain"',
124+
'--buildkitd-flags', '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host'
125+
]
126+
],
112127
])(
113128
'[%d] given %p as inputs, returns %p',
114129
async (num: number, inputs: Map<string, string>, expected: Array<string>) => {

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/context.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ export async function getInputList(name: string, ignoreComma?: boolean): Promise
131131
relaxQuotes: true,
132132
comment: '#',
133133
relaxColumnCount: true,
134-
skipEmptyLines: true
134+
skipEmptyLines: true,
135+
quote: false
135136
});
136137

137138
for (const record of records as Array<string[]>) {

0 commit comments

Comments
 (0)