(input: string)
| 89 | }; |
| 90 | |
| 91 | function tryParseNumber(input: string): number | undefined { |
| 92 | return parseInt(input) || undefined; |
| 93 | } |
| 94 | |
| 95 | function parseVersion(version: string, parseOpt: ParseParam): Version | undefined { |
| 96 | const matches = version.match(/v?(?<major>\d+)(?:.(?<minor>\d+).(?<patch>\d+)(?:-(?<tag>\w+)(?:-(?<build>[a-zA-Z0-9]+)(?:-(?<date>\d+))?)?)?)?/) |