Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ashishjain0512 opened this issue Nov 7, 2019 · 1 comment

Comments

@ashishjain0512
Copy link

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 pushed a commit to mermaid-js/mermaid-live-editor-old that referenced this issue Nov 7, 2019
ashishjain0512 pushed a commit to mermaid-js/mermaid-live-editor-old that referenced this issue Nov 7, 2019
@MDS14962A
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants