mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
chore: make all the regexes static const
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -391,7 +391,8 @@ bool FlameCreationTask::createInstance()
|
||||
|
||||
// Hack to correct some 'special sauce'...
|
||||
if (mcVersion.endsWith('.')) {
|
||||
mcVersion.remove(QRegularExpression("[.]+$"));
|
||||
static const QRegularExpression s_regex("[.]+$");
|
||||
mcVersion.remove(s_regex);
|
||||
logWarning(tr("Mysterious trailing dots removed from Minecraft version while importing pack."));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user