From 124226ff320d319386f638a0bcb5153b23c22335 Mon Sep 17 00:00:00 2001 From: aparna-ravindra Date: Tue, 17 Aug 2021 10:28:22 +0530 Subject: [PATCH] using trim to check for blank names --- script/validate-data/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/validate-data/index.ts b/script/validate-data/index.ts index 92b473e..8413653 100755 --- a/script/validate-data/index.ts +++ b/script/validate-data/index.ts @@ -82,7 +82,7 @@ async function checkWorkflow(workflowPath: string, propertiesPath: string): Prom const propertiesFileContent = await fs.readFile(propertiesPath, "utf8") const properties: WorkflowProperties = JSON.parse(propertiesFileContent) - if(properties.name && properties.name.trim.length > 0) { + if(properties.name && properties.name.trim().length > 0) { workflowErrors.name = properties.name } let v = new validator();