diff --git a/src/gui/volumegroupdialog.cpp b/src/gui/volumegroupdialog.cpp index 35e9702..6a59ab5 100644 --- a/src/gui/volumegroupdialog.cpp +++ b/src/gui/volumegroupdialog.cpp @@ -78,7 +78,7 @@ void VolumeGroupDialog::setupDialog() /* LVM Volume group name can consists of: letters numbers _ . - + * It cannot start with underscore _ and must not be equal to . or .. or any entry in /dev/ * QLineEdit accepts QValidator::Intermediate, so we just disable . at the beginning */ - QRegularExpression re(QStringLiteral(R"(^(?!_|.)[\w\-.+]+)")); + QRegularExpression re(QStringLiteral(R"(^(?!_|\.)[\w\-.+]+)")); QRegularExpressionValidator *validator = new QRegularExpressionValidator(re, this); dialogWidget().vgName().setValidator(validator); dialogWidget().vgName().setText(targetName());