MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / formatJsObjectKey

Function formatJsObjectKey

packages/extension/utils/css.ts:592–598  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

590}
591
592function formatJsObjectKey(key: string): string {
593 if (JS_IDENTIFIER_RE.test(key)) {
594 return key
595 }
596
597 return `"${key.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`
598}
599
600export function expandShorthands(style: Record<string, string>): Record<string, string> {
601 const expanded: Record<string, string> = { ...style }

Callers 1

serializeCSSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected