aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-11-06 14:09:23 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-11-06 14:09:23 +0100
commit91cb9913f94c105b26eb4cfb99562eb86ba0f16a (patch)
treea9fcf2fa4014c4a84e5eb699e8aefcf361e72918 /lib
parent5f2bc54070b3b56070e308f3336c2113dcb62122 (diff)
downloadlibquotient-91cb9913f94c105b26eb4cfb99562eb86ba0f16a.tar.gz
libquotient-91cb9913f94c105b26eb4cfb99562eb86ba0f16a.zip
Further restrict IPv6 branch of ServerPartRegEx
Diffstat (limited to 'lib')
-rw-r--r--lib/util.cpp2
1 files changed, 1 insertions, 1 deletions
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
);