(name: string)
| 29 | } |
| 30 | |
| 31 | export function findInvalidEntryNameChars(name: string): string[] { |
| 32 | const chars: string[] = [] |
| 33 | const seen = new Set<string>() |
| 34 | |
| 35 | for (const char of name) { |
| 36 | const isInvalid |
| 37 | = INVALID_ENTRY_NAME_CHARS.has(char) || char.charCodeAt(0) <= 0x1F |
| 38 | |
| 39 | if (!isInvalid || seen.has(char)) { |
| 40 | continue |
| 41 | } |
| 42 | |
| 43 | seen.add(char) |
| 44 | chars.push(char) |
| 45 | } |
| 46 | |
| 47 | return chars |
| 48 | } |
| 49 | |
| 50 | export function formatEntryNameValidationChars(chars: string[]): string { |
| 51 | return chars |
no outgoing calls
no test coverage detected