(xml: string, open: string, close: string)
| 63 | } |
| 64 | |
| 65 | function between(xml: string, open: string, close: string): string { |
| 66 | const start = xml.indexOf(open) |
| 67 | if (start < 0) return '' |
| 68 | const end = xml.indexOf(close, start + open.length) |
| 69 | if (end < 0) return '' |
| 70 | return xml.slice(start + open.length, end) |
| 71 | } |
| 72 | |
| 73 | function parseColorSlot(xml: string, slot: string): string { |
| 74 | const inner = between(xml, `<a:${slot}>`, `</a:${slot}>`) |
no outgoing calls
no test coverage detected