Skip to content

Commit

Permalink
Fix regex warnings when carla is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Feb 20, 2025
1 parent ea02b3a commit 42fe24e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/PluginFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,11 @@ void PluginFactory::filterPlugins(QSet<QFileInfo>& files) {
if (!excludePatternString.isEmpty()) {
QStringList patterns = excludePatternString.split(',');
for (const QString& pattern : patterns) {
if(pattern.trimmed().isEmpty()) {
continue;
}
QRegularExpression regex(pattern.trimmed());
if (!pattern.trimmed().isEmpty() && regex.isValid()) {
if (regex.isValid()) {
excludedPatterns << regex;
} else {
qWarning() << "Invalid regular expression:" << pattern;
Expand Down

0 comments on commit 42fe24e

Please sign in to comment.