forked from qt-creator/qt-creator
ExtensionSystem: Relax platform regexp matching
Match anywhere, not only exact matches. Change-Id: I3f530e9ee796250252108f835f7435c57f8d516b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
9a72f26fa4
commit
a48b771a3e
@@ -271,7 +271,8 @@ QRegExp PluginSpec::platformSpecification() const
|
||||
|
||||
bool PluginSpec::isAvailableForHostPlatform() const
|
||||
{
|
||||
return d->platformSpecification.isEmpty() || d->platformSpecification.exactMatch(PluginManager::platformName());
|
||||
return d->platformSpecification.isEmpty()
|
||||
|| d->platformSpecification.indexIn(PluginManager::platformName()) >= 0;
|
||||
}
|
||||
|
||||
bool PluginSpec::isRequired() const
|
||||
|
||||
Reference in New Issue
Block a user