MCPcopy Create free account
hub / github.com/simstudioai/sim / formatMetadataLabel

Function formatMetadataLabel

apps/sim/ee/audit-logs/components/audit-logs.tsx:60–65  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

58}
59
60function formatMetadataLabel(key: string): string {
61 return key
62 .replace(/([a-z0-9])([A-Z])/g, '$1 $2')
63 .replace(/[_-]+/g, ' ')
64 .replace(/\b\w/g, (char) => char.toUpperCase())
65}
66
67function formatPrimitiveValue(value: string | number | boolean | null): string {
68 if (value === null) return '-'

Callers 2

renderMetadataValueFunction · 0.85
AuditLogRowFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected