Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ecomfe/tempad-dev
/ compressHex
Function
compressHex
packages/extension/utils/css.ts:1211–1216 ·
view source on GitHub ↗
(hex: string)
Source
from the content-addressed store, hash-verified
1209
}
1210
1211
function
compressHex(hex: string): string {
1212
if
(hex.length === 7 && hex[1] === hex[2] && hex[3] === hex[4] && hex[5] === hex[6]) {
1213
return
`#${hex[1]}${hex[3]}${hex[5]}`
1214
}
1215
return
hex
1216
}
Callers
1
canonicalizeColor
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected