Merge pull request #815 from Scrumplex/fix-funny
This commit is contained in:
parent
104c231740
commit
39bba9cbfa
@ -123,7 +123,7 @@ VersionFilePtr OneSixVersionFormat::versionFileFromJson(const QJsonDocument &doc
|
|||||||
out->uid = root.value("fileId").toString();
|
out->uid = root.value("fileId").toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
const QRegularExpression valid_uid_regex{ QRegularExpression::anchoredPattern(QStringLiteral(R"(\w+(?:\.\w+)*)")) };
|
const QRegularExpression valid_uid_regex{ QRegularExpression::anchoredPattern(QStringLiteral(R"([a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]+)*)")) };
|
||||||
if (!valid_uid_regex.match(out->uid).hasMatch()) {
|
if (!valid_uid_regex.match(out->uid).hasMatch()) {
|
||||||
qCritical() << "The component's 'uid' contains illegal characters! UID:" << out->uid;
|
qCritical() << "The component's 'uid' contains illegal characters! UID:" << out->uid;
|
||||||
out->addProblem(
|
out->addProblem(
|
||||||
|
Loading…
Reference in New Issue
Block a user