(xml: string, name: string)
| 58 | } |
| 59 | |
| 60 | function attr(xml: string, name: string): string { |
| 61 | const rx = new RegExp(`${name}="([^"]*)"`) |
| 62 | return rx.exec(xml)?.[1] ?? '' |
| 63 | } |
| 64 | |
| 65 | function between(xml: string, open: string, close: string): string { |
| 66 | const start = xml.indexOf(open) |
no outgoing calls
no test coverage detected