MCPcopy
hub / github.com/simstudioai/sim / normalizePrefix

Function normalizePrefix

apps/sim/lib/data-drains/destinations/utils.ts:24–28  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

22}
23
24export function normalizePrefix(raw: string | undefined): string {
25 if (!raw) return ''
26 const trimmed = raw.replace(/^\/+/, '').replace(/\/+$/, '')
27 return trimmed.length === 0 ? '' : `${trimmed}/`
28}
29
30export interface ObjectKeyMetadata {
31 drainId: string

Callers 4

testFunction · 0.90
testFunction · 0.90
testFunction · 0.90
buildObjectKeyFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by 3

testFunction · 0.72
testFunction · 0.72
testFunction · 0.72