Skip to content

Commit

Permalink
util/file.h improve regex name
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Dec 8, 2021
1 parent fb331a9 commit 7a6241b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace {

const QRegularExpression kExtRgxp(R"(\(\*\.(.*)\)$)");
const QRegularExpression kExtractExtensionRegex(R"(\(\*\.(.*)\)$)");

} //anonymous namespace

Expand All @@ -19,7 +19,7 @@ QString filePathWithSelectedExtension(const QString& fileLocationInput,
}

// Extract 'ext' from QFileDialog file filter string 'Funky type (*.ext)'
QRegularExpressionMatch extMatch = kExtRgxp.match(fileFilter);
QRegularExpressionMatch extMatch = kExtractExtensionRegex.match(fileFilter);
if (!extMatch.hasMatch()) {
return fileLocation;
}
Expand Down

0 comments on commit 7a6241b

Please sign in to comment.