mermaid-live-editor icon indicating copy to clipboard operation
mermaid-live-editor copied to clipboard

Class diagram parser breaks depending on length of content between brackets

Open ashishjain0512 opened this issue 5 years ago • 1 comments

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.

ashishjain0512 avatar Nov 07 '19 20:11 ashishjain0512

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

MDS14962A avatar Jun 03 '23 09:06 MDS14962A