(id: string)
| 9 | * import specifiers by the importAnalysis plugin. |
| 10 | */ |
| 11 | export function wrapId(id: string): string { |
| 12 | return id.startsWith(VALID_ID_PREFIX) |
| 13 | ? id |
| 14 | : VALID_ID_PREFIX + id.replaceAll('\0', NULL_BYTE_PLACEHOLDER) |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Undo {@link wrapId}'s `/@id/` and null byte replacements. |
no outgoing calls
no test coverage detected