anchor.diff:  -spec revision(registry()) -> pos_integer().
   revision(#{<<"revision">> := Revision}) ->
       Revision.
  +
  +%%--------------------------------------------------------------------
  +%% @private
  +%% @doc
  +%% Sometimes given version is extended with additional data
  +%% (e.g. 18.02.0-rc13-10-aiosufshx) and need to be normalized.
  +%% It is done by checking whether any of eligible versions is a prefix of given one.
  +%% When there is more than one correct prefix the longest one is returned.
  +%% @end
  +%%--------------------------------------------------------------------
  +-spec get_normalized_version([entry()], entry()) -> binary() | unknown_version.
  +get_normalized_version(EligibleVersions, Version) ->
  +    lists:foldl(fun(V, Acc) ->
  +        case string:prefix(Version, V) of
  +            nomatch -> Acc;
  +            _ -> get_longer_string(V, Acc)
  +        end
  +    end,  unknown_version, EligibleVersions).
  +
  +
  +%% @private
  +-spec get_longer_string(binary(), unknown_version | binary()) ->
  +    binary() | unknown_version.
  +get_longer_string(S, unknown_version) -> S;
  +get_longer_string(S1, S2) ->
  +    case string:length(S1) > string:length(S2) of
  +        true -> S1;
  +        _ -> S2
  +    end.
  
positive.code:         {error, _} = Error ->
              Error;
          {ok, Entries} ->
              case lists:member(Entry, Entries) of
                  true -> true;
                  false -> {false, Entries}
              end
  
negative.code:     {error, unknown_version | cannot_parse_registry}.
  check_products_compatibility(?ONEZONE, VersionA, ?ONEPROVIDER, VersionB) ->
      check_entry([<<"compatibility">>, <<"onezone:oneprovider">>], VersionA, VersionB);
  check_products_compatibility(?ONEPROVIDER, VersionA, ?ONEZONE, VersionB) ->
      check_entry([<<"compatibility">>, <<"oneprovider:onezone">>], VersionA, VersionB);
  check_products_compatibility(?ONEPROVIDER, VersionA, ?ONEPROVIDER, VersionB) ->
      check_entry([<<"compatibility">>, <<"oneprovider:oneprovider">>], VersionA, VersionB);
  check_products_compatibility(?ONEPROVIDER, VersionA, ?ONECLIENT, VersionB) ->
  