Skip to content

Commit 0d00b3f

Browse files
author
ky
committed
fix minus handling in query string grammar
1 parent b1555de commit 0d00b3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/network/uri/accessors.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ struct key_value_sequence
3232
{
3333
query = pair >> *((boost::spirit::qi::lit(';') | '&') >> pair);
3434
pair = key >> -('=' >> value);
35-
key = spirit::qi::char_("a-zA-Z_") >> *spirit::qi::char_("a-zA-Z_0-9/%\\-_~\\.");
36-
value = *spirit::qi::char_("a-zA-Z_0-9/%\\-_~\\.+");
35+
key = spirit::qi::char_("a-zA-Z_") >> *spirit::qi::char_("-+.~a-zA-Z_0-9/%");
36+
value = *spirit::qi::char_("-+.~a-zA-Z_0-9/%");
3737
}
3838

3939
boost::spirit::qi::rule<uri::const_iterator, Map()> query;

0 commit comments

Comments
 (0)