0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::rfc1459: Allow generation of single character params, and empty strings.

This commit is contained in:
Jason Volk 2016-09-17 19:13:50 -07:00
parent 99ad299ef0
commit fb50f82b6e
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ rfc1459::gen::grammar<it, top>::grammar(karma::rule<it, top> &top_rule)
}
,middle // Spaced parameters
{
~char_(":\x20\r\n") << +(~char_("\x20\r\n"))
~char_(":\x20\r\n") << *(~char_("\x20\r\n"))
,"middle"
}
,params //TODO: this doesn't work yet, don't use

View file

@ -476,7 +476,7 @@ const
{
karma::rule<char *, std::string()> printable
{
+char_(rfc1459::character::gather(rfc1459::character::PRINT))
*char_(rfc1459::character::gather(rfc1459::character::PRINT))
};
generator(): grammar{printable} {}