mermaidjs / mermaid-live-editor

Location has moved to https://github.com/mermaid-js/mermaid-live-editor
https://mermaidjs.github.io/mermaid-live-editor/
MIT License
975 stars 181 forks source link

Class diagram parser breaks depending on length of content between brackets #68

Open ashishjain0512 opened 4 years ago

ashishjain0512 commented 4 years ago

Here's a sample. Just add or remove letters from the content between brackets.

https://mermaidjs.github.io/mermaid-live-editor/#/edit/eyJjb2RlIjoiY2xhc3NEaWFncmFtXG5jbGFzcyBGb297XG4gIGJhcigpOmxpc3Q8Q0hBTkdFVEhJUz5cbn0iLCJtZXJtYWlkIjp7InRoZW1lIjoiZGVmYXVsdCJ9fQ

There's something weird. The length of the word between <> breaks or not the parser. Here's a sample. Just add or remove letters from the content between brackets.

https://mermaidjs.github.io/mermaid-live-editor/#/edit/eyJjb2RlIjoiY2xhc3NEaWFncmFtXG5jbGFzcyBGb297XG4gIGJhcigpOmxpc3Q8Q0hBTkdFVEhJUz5cbn0iLCJtZXJtYWlkIjp7InRoZW1lIjoiZGVmYXVsdCJ9fQ To Reproduce Steps to reproduce the behavior:

Open sample above. Add or remove letters from the content between brackets Expected behavior No exception.

MDS14962A commented 1 year ago

erDiagram CUSTOMER ||--o{ ORDER : places ORDER ||--|{ ORDER-ITEM : contains PRODUCT ||--o{ ORDER-ITEM : is-listed-on CUSTOMER ||--o{ REVIEW : writes REVIEW ||--o{ PRODUCT : reviews RETAILER ||--o{ PRODUCT : sells ADVERTISER ||--o{ ADVERTISEMENT : creates ADVERTISEMENT ||--o{ PRODUCT : advertises