Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
baoduy committed Jul 1, 2024
1 parent 40d548c commit 64b8cff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Common/Naming/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export const getStorageName = (name: string): string => {

/** Get Vault Secret Name. Remove the stack name and replace all _ with - then lower cases. */
export const getSecretName = (name: string) => {
name = name.replace(`${stack}-`, "");
name = name.replace(stack, "");
name = replaceAll(name, `${stack}-`, "");
name = replaceAll(name, stack, "");
name = replaceAll(name, " ", "-");
name = replaceAll(name, ".", "-");
return replaceAll(name, "_", "-").toLowerCase();
Expand Down

0 comments on commit 64b8cff

Please sign in to comment.