mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-22 22:56:07 +00:00
Don't preprend v when elixir version does not start with digits (#61)
This commit is contained in:
Vendored
+4
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user