update regex pattern

This commit is contained in:
yggverse 2024-08-15 00:19:16 +03:00
parent 6b5911f82e
commit 5cfc084a53

View File

@ -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(