0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::rfc3986: Fix duration of constructed validator rules; improve grammar branches.

This commit is contained in:
Jason Volk 2019-04-16 15:27:09 -07:00
parent b14c2964b4
commit fb199fbc01

View file

@ -178,7 +178,7 @@ ircd::rfc3986::parser::ip6_remote
decltype(ircd::rfc3986::parser::ip_address)
ircd::rfc3986::parser::ip_address
{
ip6_address | ip4_address
ip4_address | ip6_address
,"IP address"
};
@ -220,7 +220,7 @@ ircd::rfc3986::parser::hostport
decltype(ircd::rfc3986::parser::host)
ircd::rfc3986::parser::host
{
ip6_address | ip4_address | domain
ip_address | domain
,"host"
};
@ -482,7 +482,7 @@ ircd::rfc3986::valid(std::nothrow_t,
const parser::rule<> &rule,
const string_view &str)
{
static const parser::rule<> only_rule
const parser::rule<> only_rule
{
rule >> eoi
};
@ -496,7 +496,7 @@ ircd::rfc3986::valid(const parser::rule<> &rule,
const string_view &str)
try
{
static const parser::rule<> only_rule
const parser::rule<> only_rule
{
rule >> eoi
};