From fc044f5924e4bd930b67100cb4545a863dde5593 Mon Sep 17 00:00:00 2001 From: Udit Veerwani <25996904+uditdc@users.noreply.github.com> Date: Wed, 25 Oct 2023 22:04:47 +0530 Subject: [PATCH] Update acceptable EnvVars key value formats (#113) --- src/commands/function/env/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/function/env/index.ts b/src/commands/function/env/index.ts index 52b265f..fdbd9ba 100644 --- a/src/commands/function/env/index.ts +++ b/src/commands/function/env/index.ts @@ -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) {