serverlessworkflow / sdk-typescript

Typescript SDK for Serverless Workflow
https://serverlessworkflow.io/
Apache License 2.0
64 stars 16 forks source link

Replace white spaces for underscore to generate the state key #144

Closed antmendoza closed 3 years ago

antmendoza commented 3 years ago

Many thanks for submitting your Pull Request :heart:!

What this PR does / why we need it:

To generate de diagram we were using the state name as the key of the mermaid state.

The diagram is not properly generated when the name contains spaces.

Fixed it replacing white spaces for underscore, to convert composed names into one word.

Special notes for reviewers:

Additional information (if needed):