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(