Skip to content

Commit 4e158b5

Browse files
authored
Merge pull request #533 from yutak03/fix/redacted-token-table-alignment
fix: prevent table misalignment for redacted tokens
2 parents dae580b + 5da8b77 commit 4e158b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pkg/utils/util.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ func UUID() (string, error) {
425425
func RedactAuthToken(token string) string {
426426
// ensure there are enough characters or we'll end up giving away the whole token
427427
if len(token) > 30 {
428-
return fmt.Sprintf("%s…%s", token[0:10], token[len(token)-5:])
428+
return fmt.Sprintf("%s...%s", token[0:10], token[len(token)-5:])
429429
}
430430

431431
return "[REDACTED]"

0 commit comments

Comments
 (0)