mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Fix version check
Not all Erlang versions are of equal length. Added clauses to handle this.
This commit is contained in:
parent
807a1fe164
commit
3e2f9dc6b0
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ parse(Version) ->
|
||||||
|
|
||||||
less_or_equal([[]], [[]]) ->
|
less_or_equal([[]], [[]]) ->
|
||||||
true;
|
true;
|
||||||
|
less_or_equal([[]], _Any) ->
|
||||||
|
true;
|
||||||
|
less_or_equal(_Any, [[]]) ->
|
||||||
|
false;
|
||||||
less_or_equal([[Left| Rl]], [[Right| Rr]]) ->
|
less_or_equal([[Left| Rl]], [[Right| Rr]]) ->
|
||||||
case {Left < Right, Left == Right} of
|
case {Left < Right, Left == Right} of
|
||||||
{true, _} ->
|
{true, _} ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue