Skip to content

Commit

Permalink
Update acceptable EnvVars key value formats (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
uditdc authored Oct 25, 2023
1 parent e6d6fa1 commit fc044f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/function/env/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function functionEnvCli(yargs: Argv) {
(f: string | number) =>
typeof f === 'string' &&
['function', 'functions', 'env', 'set'].indexOf(f) === -1 &&
/^[A-Za-z]{2,}=.+$/.test(f)
/^[A-Za-z0-9_]{2,}=[A-Za-z0-9_\-.\/:?=]+$/.test(f)
) as string[]

if (vars.length > 0) {
Expand Down

0 comments on commit fc044f5

Please sign in to comment.