Skip to content

Commit 30863c6

Browse files
dcolthorpreconbot
authored andcommitted
Allow '=' in variable values by only splitting on first '='
1 parent 0a4a917 commit 30863c6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/commands/config/set.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export function builder (yargs) {
1313

1414
export async function handler (opts) {
1515
let envVars = {}
16-
opts.vars.forEach((varPair) => {
17-
const split = varPair.split('=')
18-
envVars[split[0]] = split[1]
16+
opts.vars.forEach(function (varPair) {
17+
const [key, value] = varPair.match(/(.*?)=(.*)/).slice(1)
18+
envVars[key] = value
1919
})
2020
opts.vars = envVars
2121

0 commit comments

Comments
 (0)