Commit 48b964a2 authored by Johan Helsing's avatar Johan Helsing

Fix parseVersion for x.x.0 releases

It was returning patch === undefined previously
parent 9103c221
......@@ -3,12 +3,13 @@ function parseVersion(versionString) {
const match = versionString.match(versionStringRe);
const major = parseInt(match[1]);
const minor = parseInt(match[2]);
const patch = parseInt(match[4]) || undefined;
const patch = match[3] ? parseInt(match[4]) : undefined;
return { major: major, minor: minor, patch: patch};
module.exports = parseVersion;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment