MCPcopy Index your code
hub / github.com/massCodeIO/massCode / normalizeEntryName

Function normalizeEntryName

src/shared/entryNameValidation.ts:27–29  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

25 = /^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?$/i
26
27function normalizeEntryName(name: string): string {
28 return name.trim()
29}
30
31export function findInvalidEntryNameChars(name: string): string[] {
32 const chars: string[] = []

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected