Skip to content

Commit

Permalink
PlayerManager: Fix regular expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Oct 15, 2021
1 parent db02acb commit 609f7f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mixer/playermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 609f7f6

Please sign in to comment.