Add ref: (version) support to .tool-versions parsing (#228)

* Add support elixir ref in .tool-versions

* Make the v in ref:v optional

* Revert and refactor test changes

* Run build-dist
This commit is contained in:
Damir Vandic authored and GitHub committed 2023-08-15 14:05:23 +01:00
1 parent afb8586fc4
commit f35f714d23
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -511,8 +511,8 @@ async function testParseVersionFile() {
const gleam = '0.23.0'
const rebar3 = '3.16.0'
const toolVersions = `# a comment
erlang ${erlang}# comment, no space
elixir ${elixir} # comment, with space
erlang ref:v${erlang}# comment, no space, and ref:v
elixir ref:${elixir} # comment, with space and ref:
not-gleam 0.23 # not picked up
gleam ${gleam}
rebar ${rebar3}`