Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The URL regular expression cannot match an IPv6 address #1800

Closed
appAres opened this issue Mar 14, 2024 · 0 comments
Closed

The URL regular expression cannot match an IPv6 address #1800

appAres opened this issue Mar 14, 2024 · 0 comments

Comments

@appAres
Copy link

appAres commented Mar 14, 2024

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.

seanpquinn added a commit to seanpquinn/cpp-httplib that referenced this issue May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant