From 8199653ddd992544c88480d3de98406bb0c6c9c5 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Fri, 24 May 2024 17:06:02 +0200 Subject: [PATCH] Use simpler and less restrictive server url regex The old regex was too restrictive. The new one will allow invalid urls, but we don't gain anything from preventing that BUG: 486888 --- src/qml/ServerComboBox.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/ServerComboBox.qml b/src/qml/ServerComboBox.qml index b5aab7c65..680d0ea55 100644 --- a/src/qml/ServerComboBox.qml +++ b/src/qml/ServerComboBox.qml @@ -130,7 +130,7 @@ QQC2.ComboBox { } validator: RegularExpressionValidator { - regularExpression: /^[a-zA-Z0-9-]{1,61}\.([a-zA-Z]{2,}|[a-zA-Z0-9-]{2,}\.[a-zA-Z]{2,3})$/ + regularExpression: /^([^.]+\.)+[^.]+$/ } Connections {