Skip to content

Commit

Permalink
Update new TLDs
Browse files Browse the repository at this point in the history
There are so many new LTLDs with longer than 4 chars: https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
  • Loading branch information
vdchuyen authored Apr 30, 2024
1 parent c89cfde commit fb2341c
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 fb2341c

Please sign in to comment.