(value: string)
| 14 | } |
| 15 | |
| 16 | function normalizeModeKey(value: string): string { |
| 17 | return String(value ?? "") |
| 18 | .trim() |
| 19 | .toLowerCase(); |
| 20 | } |
| 21 | |
| 22 | function isSafeModeId(value: string): boolean { |
| 23 | return /^[a-z0-9][a-z0-9._-]*$/.test(value); |
no test coverage detected