(value: string)
| 69 | } |
| 70 | |
| 71 | function sanitizeId(value: string) { |
| 72 | const normalized = value.trim().toLowerCase() |
| 73 | if (!normalized) { |
| 74 | return undefined |
| 75 | } |
| 76 | |
| 77 | return normalized.replace(/[^a-z0-9._:/-]/g, '-') |
| 78 | } |
| 79 | |
| 80 | function sanitizeIdList(values: Array<string>) { |
| 81 | return Array.from( |
no test coverage detected