From 91cb9913f94c105b26eb4cfb99562eb86ba0f16a Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 6 Nov 2020 14:09:23 +0100 Subject: Further restrict IPv6 branch of ServerPartRegEx --- lib/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.cpp b/lib/util.cpp index ffb36068..0c1c54ff 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -118,7 +118,7 @@ qreal Quotient::stringToHueF(const QString& s) } static const auto ServerPartRegEx = QStringLiteral( - "(\\[[^][:blank:]]+\\]|[-[:alnum:].]+)" // Either IPv6 address or hostname/IPv4 address + "(\\[[^][:space:]]+]|[-[:alnum:].]+)" // IPv6 address or hostname/IPv4 address "(?::(\\d{1,5}))?" // Optional port ); -- cgit v1.2.3