From af8845f209ed6047d2268f4bcafbce5c9d7a3b14 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sat, 12 Sep 2020 00:10:18 +0100 Subject: [PATCH] Tools: Fixed Android version handling --- Tools/release-android.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/release-android.js b/Tools/release-android.js index de419e5dc..ccecc195c 100644 --- a/Tools/release-android.js +++ b/Tools/release-android.js @@ -35,7 +35,7 @@ function increaseGradleVersionCode(content) { function increaseGradleVersionName(content) { const newContent = content.replace(/(versionName\s+"\d+?\.\d+?\.)(\d+)"/, function(match, prefix, buildNum) { const n = Number(buildNum); - if (isNaN(n) || !n) throw new Error(`Invalid version code: ${buildNum}`); + if (isNaN(n)) throw new Error(`Invalid version code: ${buildNum}`); return `${prefix + (n + 1)}"`; });