using trim to check for blank names
This commit is contained in:
@@ -82,7 +82,7 @@ async function checkWorkflow(workflowPath: string, propertiesPath: string): Prom
|
|||||||
|
|
||||||
const propertiesFileContent = await fs.readFile(propertiesPath, "utf8")
|
const propertiesFileContent = await fs.readFile(propertiesPath, "utf8")
|
||||||
const properties: WorkflowProperties = JSON.parse(propertiesFileContent)
|
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
|
workflowErrors.name = properties.name
|
||||||
}
|
}
|
||||||
let v = new validator();
|
let v = new validator();
|
||||||
|
|||||||
Reference in New Issue
Block a user