Skip to content

Commit 9c66f01

Browse files
[autofix.ci] apply automated fixes
1 parent 19a09bc commit 9c66f01

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

server/api/registry/badge/[type]/[...pkg].get.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,26 @@ const SHIELDS_FONT_SHORTHAND = 'normal normal 400 11px Verdana, Geneva, DejaVu S
5151
let cachedCanvasContext: SKRSContext2D | null | undefined
5252

5353
const NARROW_CHARS = new Set([' ', '!', '"', "'", '(', ')', '*', ',', '-', '.', ':', ';', '|'])
54-
const MEDIUM_CHARS = new Set(['#', '$', '+', '/', '<', '=', '>', '?', '@', '[', '\\', ']', '^', '_', '`', '{', '}', '~'])
54+
const MEDIUM_CHARS = new Set([
55+
'#',
56+
'$',
57+
'+',
58+
'/',
59+
'<',
60+
'=',
61+
'>',
62+
'?',
63+
'@',
64+
'[',
65+
'\\',
66+
']',
67+
'^',
68+
'_',
69+
'`',
70+
'{',
71+
'}',
72+
'~',
73+
])
5574

5675
function estimateTextWidth(text: string, fallbackFont: 'default' | 'shieldsio'): number {
5776
let totalWidth = 0

0 commit comments

Comments
 (0)