diff --git a/core/server/lib/ghost-version.js b/core/server/lib/ghost-version.js index acdf01db1c..568387c5a8 100644 --- a/core/server/lib/ghost-version.js +++ b/core/server/lib/ghost-version.js @@ -8,7 +8,7 @@ let _private = {}; _private.compose = function compose(type) { switch (type) { case 'pre': - return plainVersion + '-' + semver.prerelease(version)[0] + (semver.prerelease(version)[1] ? '.' + semver.prerelease(version)[1] : ''); + return plainVersion + '-' + semver.prerelease(version).join('.'); default: return version; }