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

Function normalizeDisplaySegment

apps/sim/lib/copilot/vfs/path-utils.ts:11–13  ·  view source on GitHub ↗
(segment: string)

Source from the content-addressed store, hash-verified

9}
10
11function normalizeDisplaySegment(segment: string): string {
12 return segment.normalize('NFC').trim().replace(CONTROL_CHARS, '').replace(WHITESPACE, ' ')
13}
14
15export function encodeVfsSegment(segment: string): string {
16 const normalized = normalizeDisplaySegment(segment)

Callers 2

encodeVfsSegmentFunction · 0.85
decodeVfsSegmentFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected