Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
39bba9cbfa | |||
104c231740 | |||
bc376b22c7 |
@ -139,7 +139,7 @@ set(Launcher_HELP_URL "https://prismlauncher.org/wiki/help-pages/%1" CACHE STRIN
|
|||||||
|
|
||||||
######## Set version numbers ########
|
######## Set version numbers ########
|
||||||
set(Launcher_VERSION_MAJOR 6)
|
set(Launcher_VERSION_MAJOR 6)
|
||||||
set(Launcher_VERSION_MINOR 2)
|
set(Launcher_VERSION_MINOR 3)
|
||||||
|
|
||||||
set(Launcher_VERSION_NAME "${Launcher_VERSION_MAJOR}.${Launcher_VERSION_MINOR}")
|
set(Launcher_VERSION_NAME "${Launcher_VERSION_MAJOR}.${Launcher_VERSION_MINOR}")
|
||||||
set(Launcher_VERSION_NAME4 "${Launcher_VERSION_MAJOR}.${Launcher_VERSION_MINOR}.0.0")
|
set(Launcher_VERSION_NAME4 "${Launcher_VERSION_MAJOR}.${Launcher_VERSION_MINOR}.0.0")
|
||||||
|
@ -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(
|
||||||
|
Reference in New Issue
Block a user