ci(fix): fix check for appup coverage
Before: ```elixir iex(14)> :re.run('4.3.10', "4\\.3\\.[0-4]", [{:capture, :first, :list}]) {:match, ['4.3.1']} ```
This commit is contained in:
parent
cecedaccba
commit
9e122f38b9
|
@ -374,12 +374,12 @@ ensure_version(Version, OldInstructions) ->
|
||||||
|
|
||||||
contains_version(Needle, Haystack) when is_list(Needle) ->
|
contains_version(Needle, Haystack) when is_list(Needle) ->
|
||||||
lists:any(
|
lists:any(
|
||||||
fun(<<"*">>) -> true; %% TODO: delete after we pass esockd 5.8.4
|
fun(Regex) when is_binary(Regex) ->
|
||||||
(Regex) when is_binary(Regex) ->
|
Length = length(Needle),
|
||||||
case re:run(Needle, Regex) of
|
case re:run(Needle, Regex) of
|
||||||
{match, _} ->
|
{match, [{0, Length}]} ->
|
||||||
true;
|
true;
|
||||||
nomatch ->
|
_ ->
|
||||||
false
|
false
|
||||||
end;
|
end;
|
||||||
(Vsn) ->
|
(Vsn) ->
|
||||||
|
|
Loading…
Reference in New Issue