allow url encoding

This commit is contained in:
Benedek László 2024-07-07 21:43:11 +02:00
parent bacb6d2fb3
commit 3fc5402b69
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ URI::operator std::string() const {
}
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;