Skip to content

Commit

Permalink
Merge pull request #680 from vdchuyen/main
Browse files Browse the repository at this point in the history
Update new TLDs for email when generating new key pair
  • Loading branch information
annejan authored Jul 17, 2024
2 parents c89cfde + fb2341c commit 837a555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keygendialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void KeygenDialog::done(int r) {
// check email
static const QRegularExpression mailre(
QRegularExpression::anchoredPattern(
R"(\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b)"),
R"(\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b)"),
QRegularExpression::CaseInsensitiveOption);
if (!mailre.match(ui->email->text()).hasMatch()) {
QMessageBox::critical(
Expand Down

0 comments on commit 837a555

Please sign in to comment.