mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: implemented replication to a folder strategy ui
This commit is contained in:
9
frontend/src/lib/fn/string.ts
Normal file
9
frontend/src/lib/fn/string.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ReservedFolders } from "@app/hooks/api/secretFolders/types";
|
||||
|
||||
export const formatReservedPaths = (secretPath: string) => {
|
||||
const i = secretPath.indexOf(ReservedFolders.SecretReplication);
|
||||
if (i !== -1) {
|
||||
return secretPath.slice(0, i);
|
||||
}
|
||||
return secretPath;
|
||||
};
|
||||
Reference in New Issue
Block a user