(id: string)
| 68 | } |
| 69 | |
| 70 | export function parseBoundaryId(id: string): ParsedBoundaryId | null { |
| 71 | const normalized = id.trim().toLowerCase() |
| 72 | const messageIndex = parseMessageRef(normalized) |
| 73 | if (messageIndex !== null) { |
| 74 | return { |
| 75 | kind: "message", |
| 76 | ref: formatMessageRef(messageIndex), |
| 77 | index: messageIndex, |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | const blockId = parseBlockRef(normalized) |
| 82 | if (blockId !== null) { |
| 83 | return { |
| 84 | kind: "compressed-block", |
| 85 | ref: formatBlockRef(blockId), |
| 86 | blockId, |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | return null |
| 91 | } |
| 92 | |
| 93 | function escapeXmlAttribute(value: string): string { |
| 94 | return value |
no test coverage detected