Commit f34733e8 authored by Andrius Štikonas's avatar Andrius Štikonas

Fix regexp++.

parent e77567f7
......@@ -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);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment