Commit 93e93df6 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

GnuPG wants at least 5 characters for the name

GnuPG-bug-id: 5916
parent addbfad3
......@@ -83,7 +83,7 @@ QValidator *Validation::email(const QString &addRX, Flags flags, QObject *parent
QValidator *Validation::pgpName(Flags flags, QObject *parent)
// this regular expression is modeled after gnupg/g10/keygen.c:ask_user_id:
static const auto name_rx = QRegularExpression{QStringLiteral("[^0-9<>][^<>@]{3,}")};
static const auto name_rx = QRegularExpression{QStringLiteral("[^0-9<>][^<>@]{4,}")};
if (flags & Required) {
return new QRegularExpressionValidator{name_rx, parent};
} else {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment