diff --git a/src/modules/users/Config.cpp b/src/modules/users/Config.cpp index 1e6db0f33..87d27fd92 100644 --- a/src/modules/users/Config.cpp +++ b/src/modules/users/Config.cpp @@ -444,8 +444,6 @@ makeHostnameSuggestion( const QString& templateString, const QStringList& fullNa QString hostnameSuggestion = d.expand( templateString ); - // RegExp for valid hostnames; if the suggestion produces a valid name, return it - static const QRegularExpression HOSTNAME_RX( "^[a-zA-Z0-9][-a-zA-Z0-9_]*$" ); return hostnameSuggestion.indexOf( HOSTNAME_RX ) != -1 ? hostnameSuggestion : QString(); }