Skip to content

ER Diagram parser does not recognize the “1” cardinality alias of the first entity #7351

@AlikRakhmonov

Description

@AlikRakhmonov

Description

The ER diagram allows aliases for cardinalities. Unfortunately, the latest parser update #6984 breaks parsing when the 1 cardinality alias is used for the first entity in combination with -- or ...

Steps to reproduce

Create an ER diagram with an entity relationship.
The relationship must use the 1 cardinality alias for the first entity and either -- or ...

Screenshots

Image Image

Code Sample

erDiagram
   CUSTOMER1 only one--one or more DELIVERY-ADDRESS1 : has
   CUSTOMER2 only one to one or more DELIVERY-ADDRES2 : has
   CUSTOMER3 1 to one or more DELIVERY-ADDRESS3 : has
   CUSTOMER4 1--one or more DELIVERY-ADDRESS4 : has

Setup

  • Mermaid version: 11.12.2

Suggested Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions