MCPcopy Index your code
hub / github.com/callstack/agent-device / normalizeDeviceName

Function normalizeDeviceName

src/kernel/device.ts:334–336  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

332}
333
334function normalizeDeviceName(value: string): string {
335 return value.toLowerCase().replace(/_/g, ' ').replace(/\s+/g, ' ').trim();
336}
337
338function compareAppleDevicesForSelection<TDevice extends DeviceInfo>(
339 left: { device: TDevice; index: number },

Callers 2

resolveDeviceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected