From 4d625e55749c2d6ddf588fea3a6a6b202f7c8dd7 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 29 Nov 2024 20:35:28 +0100 Subject: [PATCH] Erlang/OTP 27 finally exports re:mp/0 --- src/misc.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/misc.erl b/src/misc.erl index c73221732..233a03f1f 100644 --- a/src/misc.erl +++ b/src/misc.erl @@ -56,15 +56,15 @@ -include_lib("xmpp/include/xmpp.hrl"). -include_lib("kernel/include/file.hrl"). +-ifdef(OTP_BELOW_27). %% Copied from erlang/otp/lib/stdlib/src/re.erl -type re_mp() :: {re_pattern, _, _, _, _}. --export_type([re_mp/0]). - --ifdef(OTP_BELOW_27). -type json_value() :: jiffy:json_value(). -else. +-type re_mp() :: re:mp(). -type json_value() :: json:encode_value(). -endif. +-export_type([re_mp/0]). -export_type([json_value/0]). -type distance_cache() :: #{{string(), string()} => non_neg_integer()}.