cpp-httplib icon indicating copy to clipboard operation
cpp-httplib copied to clipboard

The URL regular expression cannot match an IPv6 address

Open appAres opened this issue 1 year ago • 0 comments

inline Client::Client(const std::string &scheme_host_port, const std::string &client_cert_path, const std::string &client_key_path) { const static std::regex re( R"((?:([a-z]+)://)?(?:[([\d:]+)]|([^:/?#]+))(?::(\d+))?)");

The 're' is unable to match 'http://[ff06::c3]:3000' because '[([\d:]+)]' can only match sequences of digits.

appAres avatar Mar 14 '24 09:03 appAres