@scifeon/sdk 0.86.0 → 0.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-generator.js +0 -3
- package/package.json +1 -1
package/dist/app-generator.js
CHANGED
|
@@ -238,18 +238,15 @@ class AppGenerator {
|
|
|
238
238
|
}
|
|
239
239
|
addElnStepSectionDecorators() {
|
|
240
240
|
const builderRegex = /@scifeonElnStepSection\s*\(\s*(\{[^]*?\})\s*\)/i;
|
|
241
|
-
const nameRegex = /name\s*:\s*('.*'|".*")/i;
|
|
242
241
|
const idRegex = /id\s*:\s*('.*'|".*")/i;
|
|
243
242
|
for (const file of this.tsFiles) {
|
|
244
243
|
if (!this.fileIncludesDecorator(file.content, "@scifeonElnStepSection"))
|
|
245
244
|
continue;
|
|
246
245
|
const match = builderRegex.exec(file.content);
|
|
247
|
-
const nameMatch = nameRegex.exec(match[1]);
|
|
248
246
|
const idMatch = idRegex.exec(match[1]);
|
|
249
247
|
const section = {
|
|
250
248
|
id: idMatch[1].slice(1, -1),
|
|
251
249
|
src: file.src,
|
|
252
|
-
name: nameMatch[1].slice(1, -1),
|
|
253
250
|
type: plugin_types_1.PLUGIN_TYPE.ELN_STEP_SECTION,
|
|
254
251
|
};
|
|
255
252
|
this.contributionsJson.plugins.push(section);
|