From 609f7f6d137c0ed7f73d4ea68c37547058c821f4 Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Fri, 15 Oct 2021 14:53:39 +0200 Subject: [PATCH] PlayerManager: Fix regular expressions --- src/mixer/playermanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mixer/playermanager.cpp b/src/mixer/playermanager.cpp index 25194123a55..bf981f66648 100644 --- a/src/mixer/playermanager.cpp +++ b/src/mixer/playermanager.cpp @@ -31,9 +31,9 @@ const mixxx::Logger kLogger("PlayerManager"); // Utilize half of the available cores for adhoc analysis of tracks const int kNumberOfAnalyzerThreads = math_max(1, QThread::idealThreadCount() / 2); -const QRegularExpression kDeckRegex(QStringLiteral("\\[Channel\\d+\\]")); -const QRegularExpression kSamplerRegex(QStringLiteral("\\[Sampler\\d+\\]")); -const QRegularExpression kPreviewDeckRegex(QStringLiteral("\\[PreviewDeck\\d+\\]")); +const QRegularExpression kDeckRegex(QStringLiteral("^\\[Channel(\\d+)\\]$")); +const QRegularExpression kSamplerRegex(QStringLiteral("^\\[Sampler(\\d+)\\]$")); +const QRegularExpression kPreviewDeckRegex(QStringLiteral("^\\[PreviewDeck(\\d+)\\]$")); bool extractIntFromRegex(const QRegularExpression& regex, const QString& group, int* number) { const QRegularExpressionMatch match = regex.match(group);