From 6a496d4bb4d3fd330bf81e9e3c2825706a28d3e6 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Thu, 21 Sep 2023 10:44:20 +0200 Subject: [PATCH] Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi --- packages/td-tools/src/util/asset-interface-description.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/td-tools/src/util/asset-interface-description.ts b/packages/td-tools/src/util/asset-interface-description.ts index ea931cd74..f2c7e28a0 100644 --- a/packages/td-tools/src/util/asset-interface-description.ts +++ b/packages/td-tools/src/util/asset-interface-description.ts @@ -408,7 +408,7 @@ export class AssetInterfaceDescriptionUtil { for (const submodelElement of submodel.submodelElements) { if (submodelElement instanceof Object) { logDebug("SubmodelElement.idShort: " + submodelElement.idShort); - if (submodelRegex != null && typeof submodelRegex === "string" && submodelRegex.length > 0) { + if (typeof submodelRegex === "string" && submodelRegex.length > 0) { const regex = new RegExp(submodelRegex); if (!regex.test(submodelElement.idShort)) { logInfo("submodel not of interest");