From f34733e8243acb7b9461d4686efc895aeaf762cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Fri, 6 Oct 2017 23:48:52 +0100 Subject: [PATCH] Fix regexp++. --- src/gui/volumegroupdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());