mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Tools: Fixed Android version handling
This commit is contained in:
parent
c95d7f9d37
commit
af8845f209
@ -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)}"`;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user