MCPcopy Create free account
hub / github.com/vercel/examples / normalize

Function normalize

python/vibe-coding-ide/frontend/src/lib/sandbox.ts:20–21  ·  view source on GitHub ↗
(p: string | undefined | null)

Source from the content-addressed store, hash-verified

18 const lastData: Record<string, string> = { ...(previousData || {}) }
19
20 const normalize = (p: string | undefined | null) =>
21 (p || '').replace(/^\.?\//, '')
22
23 // Apply deletions first
24 for (const p of delta.deleted || []) {

Callers 1

buildSandboxSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected