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
+8
View File
@@ -187,6 +187,14 @@ async function testElixirVersions() {
got = await setupBeam.getElixirVersion(spec, otpVersion)
assert.deepStrictEqual(got, expected)
simulateInput('version-type', 'loose')
simulateInput('version-type', 'strict')
spec = 'master'
otpVersion = '23.1'
expected = 'master-otp-23'
got = await setupBeam.getElixirVersion(spec, otpVersion)
assert.deepStrictEqual(got, expected)
simulateInput('version-type', 'loose')
}
async function testRebar3Versions() {