lotas / contentful-graph

Visual representation of contentful content models in form of graphs
https://www.contentful.com/blog/2017/08/08/how-to-quickly-visualize-your-content-model/
MIT License
59 stars 6 forks source link

Update models-map-to-dot.js to accept content models to have special characters in like [] and -> #3

Closed valentinvieriu closed 7 years ago

valentinvieriu commented 7 years ago

The app breaks if the display name of the component has special characters like:

[module] - Info Box

Those will be picked up by the dot as special attributes.

lotas commented 7 years ago

Awesome addition, thank you! It most likely fixes the issue described in #5

Would you have time to update test test as well, please? Thanks!

lotas commented 7 years ago

@valentinvieriu thank you once again for the suggestions, I have merged this fix in a separate commit, adjusting tests.