Verified Commit 79a672ab authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Reduce minimal name length to 3

This should allow more short UTF-8 Names to get through
validation. As GnuPG counts bytes QRegExp is not really
the right tool for validation but this is a quick fix.

GnuPG-Bug-Id: T4745
parent ca5b58a9
......@@ -46,7 +46,7 @@
using namespace Kleo;
// these are modeled after gnupg/g10/keygen.c:ask_user_id:
static const QString name_rx = QStringLiteral("[^0-9<>][^<>@]{4,}");
static const QString name_rx = QStringLiteral("[^0-9<>][^<>@]{3,}");
static const QString comment_rx = QStringLiteral("[^()]*");
Markdown is supported
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