Skip to content

Commit

Permalink
fixup! feat(tools): update OpenAPI tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Janeček committed Jan 17, 2025
1 parent 6e50224 commit 6b062e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/administration/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ export const redactProjectKeyValue = (key: string) =>
);

export const redactKey = (key: string) =>
key.replace(key.substring(2, key.length - 2), '*'.repeat(10));
key.length >= 10
? key.replace(key.substring(2, key.length - 2), '*'.repeat(10))
: key[0] + '*'.repeat(13);

0 comments on commit 6b062e6

Please sign in to comment.