-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
Graph: Entity RelationshipStatus: ApprovedIs ready to be worked onIs ready to be worked onType: Bug / ErrorSomething isn't working or is incorrectSomething isn't working or is incorrectfix-queueBot-fixable task queued for /run-fix-queueBot-fixable task queued for /run-fix-queue
Description
Description
When using 1 as an entity identifier and referencing it as the right-side operand of a relationship in an ER Diagram, the parser throws an error.
Steps to reproduce
- Create a ER diagram relationship where the right side is
1 1 - Parser throws an error
Screenshots
Code Sample
erDiagram
a many to 1 1: label
Setup
- Mermaid version: 11.13.0
- Browser and Version: Chrome 145.0.7632.160
Suggested Solutions
No response
Additional Context
This issue is introduced in 11.13.0. I haven't read the source for the two changes (#7375 and #6984) that may affect this behavior to give a definitive root cause. It could also be some combination of the two changes.
Prior to 11.13.0 1 would not have been a valid entity identifier since it was reserved for the 1 cardinality alias.
Left side 1 1 as in 1 1 to many SomeEntity is not affected.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Graph: Entity RelationshipStatus: ApprovedIs ready to be worked onIs ready to be worked onType: Bug / ErrorSomething isn't working or is incorrectSomething isn't working or is incorrectfix-queueBot-fixable task queued for /run-fix-queueBot-fixable task queued for /run-fix-queue