Add econf:string/2 validator

This commit is contained in:
Evgeny Khramtsov 2019-07-16 18:10:45 +03:00
parent 0e48adb1ed
commit a7a53f601e
2 changed files with 5 additions and 2 deletions

View File

@ -26,7 +26,7 @@
{fast_xml, ".*", {git, "https://github.com/processone/fast_xml", "7fd02f3a2f"}}, {fast_xml, ".*", {git, "https://github.com/processone/fast_xml", "7fd02f3a2f"}},
{xmpp, ".*", {git, "https://github.com/processone/xmpp", "3e2f1c5"}}, {xmpp, ".*", {git, "https://github.com/processone/xmpp", "3e2f1c5"}},
{fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.19"}}}, {fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.19"}}},
{yconf, ".*", {git, "https://github.com/processone/yconf", "dfeaa7e"}}, {yconf, ".*", {git, "https://github.com/processone/yconf", "0fde515"}},
{jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}}, {jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}},
{p1_oauth2, ".*", {git, "https://github.com/processone/p1_oauth2", {tag, "0.6.5"}}}, {p1_oauth2, ".*", {git, "https://github.com/processone/p1_oauth2", {tag, "0.6.5"}}},
{pkix, ".*", {git, "https://github.com/processone/pkix", {tag, "1.0.2"}}}, {pkix, ".*", {git, "https://github.com/processone/pkix", {tag, "1.0.2"}}},

View File

@ -28,7 +28,7 @@
-export([pos_int/0, pos_int/1, non_neg_int/0, non_neg_int/1]). -export([pos_int/0, pos_int/1, non_neg_int/0, non_neg_int/1]).
-export([int/0, int/2, number/1, octal/0]). -export([int/0, int/2, number/1, octal/0]).
-export([binary/0, binary/1, binary/2]). -export([binary/0, binary/1, binary/2]).
-export([string/0, string/1]). -export([string/0, string/1, string/2]).
-export([enum/1, bool/0, atom/0, any/0]). -export([enum/1, bool/0, atom/0, any/0]).
%% Complex types %% Complex types
-export([url/0, url/1]). -export([url/0, url/1]).
@ -272,6 +272,9 @@ string() ->
string(Re) -> string(Re) ->
yconf:string(Re). yconf:string(Re).
string(Re, Opts) ->
yconf:string(Re, Opts).
any() -> any() ->
yconf:any(). yconf:any().