From 4422c865874af04e341ccf2b86ea4875a3ac1728 Mon Sep 17 00:00:00 2001 From: Gabe <41127686+Zidious@users.noreply.github.com> Date: Mon, 18 Dec 2023 18:15:38 +0000 Subject: [PATCH] amend regex comment --- .github/actions/get-new-env-vars-v1/src/run.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/get-new-env-vars-v1/src/run.ts b/.github/actions/get-new-env-vars-v1/src/run.ts index 750b2f88..0c864a33 100644 --- a/.github/actions/get-new-env-vars-v1/src/run.ts +++ b/.github/actions/get-new-env-vars-v1/src/run.ts @@ -23,9 +23,9 @@ export default async function run(core: Core) { throw new Error(`Error getting env vars: \n${envVarsError}`) } + // Only get env vars that are added (i.e. prefixed with `+`) + // and not commented out (i.e. prefixed with `+#`) const regex = /^\+[^+#].*/ - // Only grab lines that start with a `+` and ignore any lines that - // are commented out with a `#` at the beginning. const newEnvVars = envVars .split('\n') .filter(e => e.match(regex))