Fix regexp++.
This commit is contained in:
parent
e77567f768
commit
f34733e824
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue