From 7b1a4fa8e4d7e9c09ee390c32fac193d2aff937c Mon Sep 17 00:00:00 2001 From: Sunil Kumar Date: Thu, 27 Jul 2023 00:48:17 +0530 Subject: [PATCH] change regexp to accept deeper level paths --- backend/src/integrations/sync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/integrations/sync.ts b/backend/src/integrations/sync.ts index 709af24d0..1c7b264a7 100644 --- a/backend/src/integrations/sync.ts +++ b/backend/src/integrations/sync.ts @@ -2067,7 +2067,7 @@ const syncSecretsWindmill = async ({ Object.keys(secrets).forEach( (key) => { - const pattern = new RegExp('^([a-zA-Z0-9])\/([a-zA-Z-0-9-_])+\/([a-zA-Z0-9-_])+') + const pattern = new RegExp('^[uf]+[\/](?:[a-zA-Z0-9-_]+[\/])*([a-zA-Z0-9-_]+)') if((key.startsWith("u/") || key.startsWith("f/")) && pattern.test(key)) { if(secretsResList.includes(key)) { modifiedFormatForUpdateSecretInjection.push({