From c8a41d663d690ac143817a04c0c0c948c405a0bf Mon Sep 17 00:00:00 2001 From: kairi003 Date: Tue, 3 Sep 2024 05:34:12 +0900 Subject: [PATCH] Fix: return value of noteStatement is not an array --- packages/mermaid/src/diagrams/class/parser/classDiagram.jison | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mermaid/src/diagrams/class/parser/classDiagram.jison b/packages/mermaid/src/diagrams/class/parser/classDiagram.jison index 308fb3efa1..230bbfcb7c 100644 --- a/packages/mermaid/src/diagrams/class/parser/classDiagram.jison +++ b/packages/mermaid/src/diagrams/class/parser/classDiagram.jison @@ -282,8 +282,8 @@ classStatements : classStatement {$$=[[$1], []]} | classStatement NEWLINE {$$=[[$1], []]} | classStatement NEWLINE classStatements {$3[0].unshift($1); $$=$3} - | noteStatement {$$=[[], $1]} - | noteStatement NEWLINE {$$=[[], $1]} + | noteStatement {$$=[[], [$1]]} + | noteStatement NEWLINE {$$=[[], [$1]]} | noteStatement NEWLINE classStatements {$3[1].unshift($1); $$=$3} ;