(match: RegExpExecArray)
| 28 | } |
| 29 | |
| 30 | function buildParsedVersion(match: RegExpExecArray): ParsedStableVersion { |
| 31 | return { |
| 32 | major: Number(match[1]), |
| 33 | minor: Number(match[2]), |
| 34 | patch: Number(match[3]), |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | export function isStableVersion(version: string): boolean { |
| 39 | return parseStableVersion(version) !== null |
no outgoing calls
no test coverage detected