allow url encoding
This commit is contained in:
parent
bacb6d2fb3
commit
3fc5402b69
@ -33,7 +33,7 @@ URI::operator std::string() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
URI::URI(const std::string& uri) {
|
URI::URI(const std::string& uri) {
|
||||||
std::regex uri_regex(R"((([\w\d]+):\/\/)?(([\w\d]+)(:([\w\d]+)?)@)?([\w\d\.]+)(:(\d+))?(\/?[\w\d\.\/]+)?(\?([^#]+))?(\#([\w\d]*))?)");
|
std::regex uri_regex(R"((([\w\d]+):\/\/)?(([\w\d]+)(:([\w\d]+)?)@)?([\w\d\.]+)(:(\d+))?(\/?[\w\d%\.\/]+)?(\?([^#]+))?(\#([\w\d]*))?)");
|
||||||
|
|
||||||
std::smatch match;
|
std::smatch match;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user