MCPcopy Create free account
hub / github.com/massCodeIO/massCode / formatEntryNameValidationChars

Function formatEntryNameValidationChars

src/shared/entryNameValidation.ts:50–60  ·  view source on GitHub ↗
(chars: string[])

Source from the content-addressed store, hash-verified

48}
49
50export function formatEntryNameValidationChars(chars: string[]): string {
51 return chars
52 .map((char) => {
53 if (char.charCodeAt(0) <= 0x1F) {
54 return `U+${char.charCodeAt(0).toString(16).padStart(4, '0').toUpperCase()}`
55 }
56
57 return char
58 })
59 .join(' ')
60}
61
62export function getEntryNameValidationIssue(
63 name: string,

Calls

no outgoing calls

Tested by

no test coverage detected