| 21 | } |
| 22 | |
| 23 | export class AsciinemaCastParser implements ICastParser { |
| 24 | public parse(text: string): ICastObject { |
| 25 | try { |
| 26 | return new AsciinemaCastV1Parser().parse(text) |
| 27 | } catch (err) { |
| 28 | return new AsciinemaCastV2Parser().parse(text) |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Asciinema cast v1 parser |
nothing calls this directly
no outgoing calls
no test coverage detected