mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 13:26:16 +00:00
change regexp to accept deeper level paths
This commit is contained in:
@@ -2067,7 +2067,7 @@ const syncSecretsWindmill = async ({
|
|||||||
|
|
||||||
Object.keys(secrets).forEach(
|
Object.keys(secrets).forEach(
|
||||||
(key) => {
|
(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((key.startsWith("u/") || key.startsWith("f/")) && pattern.test(key)) {
|
||||||
if(secretsResList.includes(key)) {
|
if(secretsResList.includes(key)) {
|
||||||
modifiedFormatForUpdateSecretInjection.push({
|
modifiedFormatForUpdateSecretInjection.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user