(id: string)
| 18 | * Undo {@link wrapId}'s `/@id/` and null byte replacements. |
| 19 | */ |
| 20 | export function unwrapId(id: string): string { |
| 21 | return id.startsWith(VALID_ID_PREFIX) |
| 22 | ? id.slice(VALID_ID_PREFIX.length).replaceAll(NULL_BYTE_PLACEHOLDER, class="st">'\0') |
| 23 | : id |
| 24 | } |
| 25 | |
| 26 | const windowsSlashRE = /\\/g |
| 27 | export function slash(p: string): string { |
no outgoing calls
no test coverage detected