mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +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(
|
||||
(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({
|
||||
|
||||
Reference in New Issue
Block a user