From 5cfc084a53b187727c7ccca23f5e74b8e9f9f7b4 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 15 Aug 2024 00:19:16 +0300 Subject: [PATCH] update regex pattern --- src/lib/url.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/url.cpp b/src/lib/url.cpp index 96475e17..1b95a597 100644 --- a/src/lib/url.cpp +++ b/src/lib/url.cpp @@ -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(