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:
Orgad Shaneh
2018-09-25 00:02:02 +03:00
committed by Orgad Shaneh
parent 9a72f26fa4
commit a48b771a3e
2 changed files with 3 additions and 2 deletions

View File

@@ -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