Don't preprend v when elixir version does not start with digits (#61)

This commit is contained in:
Bryan Paxton
2021-07-20 14:08:24 -05:00
committed by GitHub
parent 9283f857f1
commit ade4f1d567
4 changed files with 19 additions and 2 deletions
+4 -1
View File
@@ -4830,7 +4830,10 @@ async function getElixirVersion(exSpec0, otpVersion) {
)
}
return `v${elixirVersionWithOTP}`
const DigitStart = new RegExp('^\\d+')
return DigitStart.test(elixirVersion)
? `v${elixirVersionWithOTP}`
: elixirVersionWithOTP
}
async function getRebar3Version(r3Spec) {