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
|
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
|
bool PluginSpec::isRequired() const
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
\"Version\" : \"$$QTCREATOR_VERSION\",
|
\"Version\" : \"$$QTCREATOR_VERSION\",
|
||||||
\"CompatVersion\" : \"$$QTCREATOR_COMPAT_VERSION\",
|
\"CompatVersion\" : \"$$QTCREATOR_COMPAT_VERSION\",
|
||||||
\"DisabledByDefault\" : true,
|
\"DisabledByDefault\" : true,
|
||||||
\"Platform\" : \"(Linux.*)|(Windows.*)\",
|
\"Platform\" : \"^(Linux|Windows)\",
|
||||||
\"Vendor\" : \"AudioCodes\",
|
\"Vendor\" : \"AudioCodes\",
|
||||||
\"Copyright\" : \"(C) 2016 AudioCodes Ltd., (C) $$QTCREATOR_COPYRIGHT_YEAR The Qt Company Ltd\",
|
\"Copyright\" : \"(C) 2016 AudioCodes Ltd., (C) $$QTCREATOR_COPYRIGHT_YEAR The Qt Company Ltd\",
|
||||||
\"License\" : [ \"Commercial Usage\",
|
\"License\" : [ \"Commercial Usage\",
|
||||||
|
|||||||
Reference in New Issue
Block a user