(output)
| 7 | /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/; |
| 8 | |
| 9 | function parseVersionOutput(output) { |
| 10 | const match = String(output || "").match( |
| 11 | /v(\d+\.\d+(?:\.\d+)?(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?)/ |
| 12 | ); |
| 13 | return match ? match[1] : null; |
| 14 | } |
| 15 | |
| 16 | function semverGt(a, b) { |
| 17 | if (!SEMVER_RE.test(a) || !SEMVER_RE.test(b)) return false; |
no outgoing calls
no test coverage detected