diff --git a/gulpfile.js b/gulpfile.js index a540c637415..18b457d4f85 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -174,7 +174,7 @@ async function updateBuildNumber(args) { versionParts.length > 2 ? versionParts[2].replace(/(\d+)/, args.buildNumber) : args.buildNumber; const newVersion = versionParts.length > 1 - ? `${versionParts[0]}.${versionParts[1]}.99${buildNumberPortion}` + ? `${versionParts[0]}.${versionParts[1]}.99${buildNumberPortion.substring(0, buildNumberPortion.length - 2)}` : packageJson.version; packageJson.version = newVersion;