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

This commit is contained in:
Bryan Paxton authored and GitHub committed 2021-07-20 14:08:24 -05:00
1 parent 9283f857f1
commit ade4f1d567
4 files changed
+19 -2

No files matched your search

+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() {