Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Dec 22, 2023
1 parent a442ba3 commit 6584b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/components/src/components/helpers/naming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function prefixName(name: string, suffix?: string) {

const stageTruncated = $app.stage.substring(
0,
Math.max(8, L - nameLen - 1)
Math.max(8, L - nameLen - 1),
);
const nameTruncated = name.substring(0, L - stageTruncated.length - 1);
return `${nameTruncated}-${stageTruncated}`;
Expand Down
2 changes: 1 addition & 1 deletion internal/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package util
import "crypto/rand"

func RandomString(length int) string {
const charset = "abcdefhiklmnorstuvwxz"
const charset = "abcdefhkmnorstuvwxz"
b := make([]byte, length)
if _, err := rand.Read(b); err != nil {
panic(err)
Expand Down

0 comments on commit 6584b8b

Please sign in to comment.