Skip to content

Commit 9898754

Browse files
committed
Erlang/OTP 27 finally exports re:mp/0 and re:compile_options/0 types
1 parent e9c42e6 commit 9898754

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- run: rebar3 compile
1919
- run: rebar3 xref
2020
- run: rebar3 dialyzer
21+
if: matrix.otp != 26 # Some re types are not exported in OTP 26
2122
- run: rebar3 eunit -v
2223
- name: Send to Coveralls
2324
if: matrix.otp == 26

src/yconf.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ binary() ->
243243
binary(Regexp) ->
244244
binary(Regexp, []).
245245

246-
-spec binary(iodata(), [re:compile_option()]) -> validator(binary()).
246+
-spec binary(iodata(), re:compile_options()) -> validator(binary()).
247247
binary(Regexp, Opts) when is_list(Regexp) orelse is_binary(Regexp) ->
248248
fun(Val) ->
249249
Bin = to_binary(Val),
@@ -265,7 +265,7 @@ string() ->
265265
string(Regexp) ->
266266
string(Regexp, []).
267267

268-
-spec string(iodata(), [re:compile_option()]) -> validator(string()).
268+
-spec string(iodata(), re:compile_options()) -> validator(string()).
269269
string(Regexp, Opts) when is_list(Regexp) orelse is_binary(Regexp) ->
270270
fun(Val) ->
271271
Str = to_string(Val),
@@ -451,7 +451,7 @@ timeout(Unit, Inf) ->
451451
re() ->
452452
re([]).
453453

454-
-spec re([re:compile_option()]) -> validator(re:mp()).
454+
-spec re(re:compile_options()) -> validator(re:mp()).
455455
re(Opts) ->
456456
fun(Val) ->
457457
Bin = to_binary(Val),
@@ -465,7 +465,7 @@ re(Opts) ->
465465
glob() ->
466466
glob([]).
467467

468-
-spec glob([re:compile_option()]) -> validator(re:mp()).
468+
-spec glob(re:compile_options()) -> validator(re:mp()).
469469
glob(Opts) ->
470470
fun(Val) ->
471471
S = to_string(Val),

0 commit comments

Comments
 (0)