mirror of
https://github.com/ash-project/igniter.git
synced 2024-09-20 05:22:52 +12:00
fix: version string splitting (#25)
This commit is contained in:
parent
6bca8705dd
commit
e72aa1ee4a
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ defmodule Igniter.Util.Install do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp determine_dep_type_and_version(requirement) do
|
defp determine_dep_type_and_version(requirement) do
|
||||||
case String.split(requirement, "@", trim: true) do
|
case String.split(requirement, "@", trim: true, parts: 2) do
|
||||||
[package] ->
|
[package] ->
|
||||||
if Regex.match?(~r/^[a-z][a-z0-9_]*$/, package) do
|
if Regex.match?(~r/^[a-z][a-z0-9_]*$/, package) do
|
||||||
case Req.get!("https://hex.pm/api/packages/#{package}").body do
|
case Req.get!("https://hex.pm/api/packages/#{package}").body do
|
||||||
|
|
Loading…
Reference in a new issue