From 60d5bb8378f7a34a53e2cdfc0e1b5fbd822454d2 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Tue, 16 Dec 2025 22:13:11 -0500 Subject: [PATCH] chore (settings): fix typo peroid -> period --- src/lib/common/Settings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/common/Settings.cpp b/src/lib/common/Settings.cpp index 6c092c232..1c325c9a8 100644 --- a/src/lib/common/Settings.cpp +++ b/src/lib/common/Settings.cpp @@ -119,16 +119,16 @@ QString Settings::cleanScreenName(const QString &name) static const auto hyphen = QStringLiteral("-"); static const auto space = QStringLiteral(" "); static const auto underscore = QStringLiteral("_"); - static const auto peroid = QStringLiteral("."); + static const auto period = QStringLiteral("."); static const auto nothing = QStringLiteral(""); static const auto nameRegex = QRegularExpression(QStringLiteral("[^\\w\\-\\.]")); QString cleanName = name.simplified(); cleanName.replace(space, underscore); cleanName.replace(nameRegex, nothing); - while (cleanName.startsWith(hyphen) || cleanName.startsWith(underscore) || cleanName.startsWith(peroid)) + while (cleanName.startsWith(hyphen) || cleanName.startsWith(underscore) || cleanName.startsWith(period)) cleanName.removeFirst(); - while (cleanName.endsWith(hyphen) || cleanName.endsWith(underscore) || cleanName.endsWith(peroid)) + while (cleanName.endsWith(hyphen) || cleanName.endsWith(underscore) || cleanName.endsWith(period)) cleanName.removeLast(); if (cleanName.length() > 255) { cleanName.truncate(255);