Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
public status: string,
public pattern: string = null
) {
this.id = uuidv4()
if (pattern === null) {
this.pattern = `{}${status}{}`
}
this.expression = new CucumberExpression(this.pattern, new ParameterTypeRegistry)
}