Browse Source

update regex pattern

CPP-GTK4
yggverse 3 months ago
parent
commit
5cfc084a53
  1. 2
      src/lib/url.cpp

2
src/lib/url.cpp

@ -9,7 +9,7 @@ Url::Url( @@ -9,7 +9,7 @@ Url::Url(
smatch results;
static const regex pattern( // @TODO user:password@#fragment?
R"regex(^((\w+):\/\/)?([^:\/]+)?(:(\d+))?([^\?$]+)?(\?(.*))?)regex"
R"regex(^((\w+)?:\/\/)?([^:\/]+)?(:(\d+)?)?([^\?$]+)?(\?(.*)?)?)regex"
);
regex_search(

Loading…
Cancel
Save